Support lowercase values for LOG_LEVEL env var

master
Updatebot 2024-08-26 08:32:49 -05:00 committed by Dustin C. Hatch
parent 54ef1fe206
commit 4516fe954c
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ def setup_logging() -> None:
},
)
)
handler.setLevel(os.environ.get('LOG_LEVEL', 'DEBUG'))
handler.setLevel(os.environ.get('LOG_LEVEL', 'DEBUG').upper())
logging.root.addHandler(handler)
logging.root.setLevel(logging.DEBUG)
log.setLevel(TRACE)