From 9370ad72d014f7461eca71006a9590ef4b3d59a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Sat, 19 Feb 2022 09:06:42 +0100 Subject: [PATCH] Don't send an email on django errors in hyperkitty/postorius MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- roles/mailman/templates/settings.py.j2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/mailman/templates/settings.py.j2 b/roles/mailman/templates/settings.py.j2 index d088f08b51..d68e872143 100644 --- a/roles/mailman/templates/settings.py.j2 +++ b/roles/mailman/templates/settings.py.j2 @@ -377,9 +377,10 @@ LOGGING = { 'django.request': { 'handlers': [ 'file', - {% if env == 'production' %} - 'mail_admins', - {% endif %} + # Don't send an email on server errors, there's just too many + #{% if env == 'production' %} + #'mail_admins', + #{% endif %} ], 'level': 'DEBUG', },