Skip to content

Commit

Permalink
Fix bug in config handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jul 25, 2024
1 parent 06b0735 commit 4765295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neon_utils/log_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ def init_log(config: dict = None, log_name: str = None) -> type(LOG):
else:
# TODO: This is not apparently used anywhere; consider deprecation
_cfg = config
_log_level = _cfg.get("log_level", "INFO")
_logs_conf = _cfg.get("logs") or {}
_logs_conf["level"] = _cfg.get("log_level", "INFO")
LOG.debug(f"Initializing logger with: {_logs_conf}")
LOG.init(_logs_conf) # read log level from config
LOG.name = log_name
Expand Down

0 comments on commit 4765295

Please sign in to comment.