From 3471dda4e41125bb12406c8f3cff1863044ebf32 Mon Sep 17 00:00:00 2001 From: Erik <35608570+weisser-dev@users.noreply.github.com> Date: Sun, 13 Apr 2025 10:26:15 +0200 Subject: [PATCH] Remove LOG_LEVELs cause this dictionary is not global available --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 1b3cc76..54a40e5 100644 --- a/main.py +++ b/main.py @@ -41,8 +41,8 @@ PIPELINE_NAMES = {} #Add GLOBAL_LOG_LEVEL for Pipeplines log_level = os.getenv('GLOBAL_LOG_LEVEL', 'INFO').upper() -logging.basicConfig(level=LOG_LEVELS[log_level]) - +numeric_level = getattr(logging, log_level, logging.INFO) +logging.basicConfig(level=numeric_level) def get_all_pipelines(): pipelines = {}