Skip to content

Commit

Permalink
Merge pull request #519 from Bot-detector/extreme4all-patch-1
Browse files Browse the repository at this point in the history
Update config.py
  • Loading branch information
extreme4all authored Apr 7, 2024
2 parents 7cfbc28 + 7433e06 commit 4f82016
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f82016

Please sign in to comment.