fix(cli): Fix logging level not set on run
This commit is contained in:
parent
b8f086b4dd
commit
2df5a61ff3
|
@ -51,7 +51,7 @@ def configure_logger(cli=False):
|
||||||
update_dict(logger_config, config.get("LOGGING"))
|
update_dict(logger_config, config.get("LOGGING"))
|
||||||
# Check for shortcuts
|
# Check for shortcuts
|
||||||
if "level" in config["LOGGING"] or isinstance(cli, int):
|
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["loggers"]["flaschengeist"] = {"level": level}
|
||||||
logger_config["handlers"]["console"]["level"] = level
|
logger_config["handlers"]["console"]["level"] = level
|
||||||
logger_config["handlers"]["file"]["level"] = level
|
logger_config["handlers"]["file"]["level"] = level
|
||||||
|
|
Loading…
Reference in New Issue