root: don't log django request warnings

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-02-17 18:08:18 +01:00
parent 153bd3aaf1
commit f749027143
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -425,6 +425,7 @@ _LOGGING_HANDLER_MAP = {
"": LOG_LEVEL,
"authentik": LOG_LEVEL,
"django": "WARNING",
"django.request": "ERROR",
"celery": "WARNING",
"selenium": "WARNING",
"docker": "WARNING",
@ -438,7 +439,7 @@ _LOGGING_HANDLER_MAP = {
"fsevents": "WARNING",
}
for handler_name, level in _LOGGING_HANDLER_MAP.items():
# pyright: reportGeneralTypeIssues=false
LOGGING["loggers"][handler_name] = {
"handlers": ["console"],
"level": level,