mirror of
https://github.com/open-webui/pipelines
synced 2025-05-11 08:01:08 +00:00
Remove LOG_LEVELs cause this dictionary is not global available
This commit is contained in:
parent
756d3a94f5
commit
3471dda4e4
4
main.py
4
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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user