From ff2456dcfa5158e6c32cf97c97d8a60cffcc69e7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 16 Jul 2020 17:21:46 +0200 Subject: [PATCH] root: clean log output, always show logger --- passbook/root/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passbook/root/settings.py b/passbook/root/settings.py index 1c1d5d0f6..77e3aa9e9 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -323,6 +323,7 @@ LOG_PRE_CHAIN = [ # Add the log level and a timestamp to the event_dict if the log entry # is not from structlog. structlog.stdlib.add_log_level, + structlog.stdlib.add_logger_name, structlog.processors.TimeStamper(), ] @@ -372,6 +373,8 @@ _LOGGING_HANDLER_MAP = { "oauthlib": LOG_LEVEL, "oauth2_provider": LOG_LEVEL, "oidc_provider": LOG_LEVEL, + "docker": "WARNING", + "urllib3": "WARNING", } for handler_name, level in _LOGGING_HANDLER_MAP.items(): # pyright: reportGeneralTypeIssues=false