mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-21 22:46:31 +00:00
fix logger
This commit is contained in:
1 parent
3f01443b7c
commit
fc0ceec83d
1 file changed
+4
@@ -1,3 +1,7 @@
|
||||
import logging
|
||||
import os
|
||||
|
||||
logger = logging.getLogger("uvicorn.error")
|
||||
logger.setLevel(os.getenv("LOG_LEVEL") or logging.INFO)
|
||||
if len(logger.handlers) == 0:
|
||||
logger.addHandler(logging.StreamHandler())
|
||||
Reference in new issue
Block a user