From b856d30a95affeaafb3910754a7583128b3eeee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Wed, 28 Sep 2016 23:46:19 +0000 Subject: [PATCH] Mailman: handle Django security logs like request logs --- roles/mailman/templates/settings.py.j2 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/mailman/templates/settings.py.j2 b/roles/mailman/templates/settings.py.j2 index 2db72eb0e1..308de0d8f5 100644 --- a/roles/mailman/templates/settings.py.j2 +++ b/roles/mailman/templates/settings.py.j2 @@ -353,7 +353,15 @@ LOGGING = { {% endif %} ], 'level': 'DEBUG', - 'propagate': True, + }, + 'django.security': { + 'handlers': [ + 'file', + {% if env == 'production' %} + 'mail_admins', + {% endif %} + ], + 'level': 'DEBUG', }, }, 'formatters': {