diff --git a/src/core/config.py b/src/core/config.py index e88d39f..e6d002c 100644 --- a/src/core/config.py +++ b/src/core/config.py @@ -52,10 +52,11 @@ logging.getLogger("asyncmy").setLevel(logging.ERROR) logging.getLogger("aiokafka").setLevel(logging.WARNING) -uvicorn_error = logging.getLogger("uvicorn.error") -uvicorn_error.disabled = True -uvicorn_access = logging.getLogger("uvicorn.access") -uvicorn_access.disabled = True +if env != "DEV": + uvicorn_error = logging.getLogger("uvicorn.error") + uvicorn_error.disabled = True + uvicorn_access = logging.getLogger("uvicorn.access") + uvicorn_access.disabled = True # https://github.com/aio-libs/aiomysql/issues/103 # https://github.com/coleifer/peewee/issues/2229