From 2df5a61ff3045576c6bbf7640bf34d447707e6e6 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 18 Dec 2021 03:03:41 +0100 Subject: [PATCH] fix(cli): Fix logging level not set on run --- flaschengeist/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/config.py b/flaschengeist/config.py index 4282712..5b7031c 100644 --- a/flaschengeist/config.py +++ b/flaschengeist/config.py @@ -51,7 +51,7 @@ def configure_logger(cli=False): update_dict(logger_config, config.get("LOGGING")) # Check for shortcuts if "level" in config["LOGGING"] or isinstance(cli, int): - level = cli if isinstance(cli, int) else config["LOGGING"]["level"] + level = cli if cli and isinstance(cli, int) else config["LOGGING"]["level"] logger_config["loggers"]["flaschengeist"] = {"level": level} logger_config["handlers"]["console"]["level"] = level logger_config["handlers"]["file"]["level"] = level