From f7490271436a0fe8f9e23656b6d83467a56f9373 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 17 Feb 2023 18:08:18 +0100 Subject: [PATCH] root: don't log django request warnings Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 20fdb634d..ec742d3f8 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -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,