Remove LOG_LEVELs cause this dictionary is not global available

This commit is contained in:
Erik 2025-04-13 10:26:15 +02:00 committed by GitHub
parent 756d3a94f5
commit 3471dda4e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = {}