mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-10-05 14:21:02 +01:00
fix logger
This commit is contained in:
@@ -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