From 99ba414d88222f4813f696f4cc13c50310742af3 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 22 May 2025 10:58:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(back)=20add=20docs.security=20to?= =?UTF-8?q?=20logging=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the malware_detection callback we are using a different logger named docs.security. We want to configure a logger in the logging settings handling it. --- src/backend/impress/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/backend/impress/settings.py b/src/backend/impress/settings.py index 571d7052..a67a2282 100755 --- a/src/backend/impress/settings.py +++ b/src/backend/impress/settings.py @@ -679,6 +679,15 @@ class Base(Configuration): ), "propagate": False, }, + "docs.security": { + "handlers": ["console"], + "level": values.Value( + "INFO", + environ_name="LOGGING_LEVEL_LOGGERS_SECURITY", + environ_prefix=None, + ), + "propagate": False, + }, }, }