From b7ca1d89c94f24290901855d61edfea875a1d414 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Wed, 24 Jul 2024 17:44:20 -0700 Subject: [PATCH] More backwards-compat updates --- neon_utils/log_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neon_utils/log_utils.py b/neon_utils/log_utils.py index e8575e89..2bfddb66 100644 --- a/neon_utils/log_utils.py +++ b/neon_utils/log_utils.py @@ -209,7 +209,7 @@ def init_log(config: dict = None, log_name: str = None) -> type(LOG): _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 + LOG.name = _logs_conf.get('name') or log_name _logs_conf = _cfg.get("logs") or _cfg.get("logging") or {}