From 044122a2759f1c2eec436b9d6fb9247537d2b25d Mon Sep 17 00:00:00 2001 From: extreme4all <> Date: Tue, 14 Nov 2023 17:07:16 +0100 Subject: [PATCH] open the log gates --- src/core/logging_config.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/logging_config.py b/src/core/logging_config.py index 6eaf6513..d9918b76 100644 --- a/src/core/logging_config.py +++ b/src/core/logging_config.py @@ -32,12 +32,12 @@ logging.getLogger("aiomysql").setLevel(logging.ERROR) logging.getLogger("aiokafka").setLevel(logging.WARNING) -if settings.ENV == "PRD": - 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 -warnings.filterwarnings("ignore", ".*Duplicate entry.*") +# if settings.ENV == "PRD": +# 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 +# warnings.filterwarnings("ignore", ".*Duplicate entry.*")