Skip to content

Commit 99ba414

Browse files
lunikaAntoLC
authored andcommitted
🔧(back) add docs.security to logging settings
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.
1 parent 41631b5 commit 99ba414

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/backend/impress/settings.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,15 @@ class Base(Configuration):
679679
),
680680
"propagate": False,
681681
},
682+
"docs.security": {
683+
"handlers": ["console"],
684+
"level": values.Value(
685+
"INFO",
686+
environ_name="LOGGING_LEVEL_LOGGERS_SECURITY",
687+
environ_prefix=None,
688+
),
689+
"propagate": False,
690+
},
682691
},
683692
}
684693

0 commit comments

Comments
 (0)