summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/mailman/files/django_fedora.py2
-rw-r--r--roles/mailman/templates/settings.py.j214
2 files changed, 6 insertions, 10 deletions
diff --git a/roles/mailman/files/django_fedora.py b/roles/mailman/files/django_fedora.py
index b021694ae..b8cda8a07 100644
--- a/roles/mailman/files/django_fedora.py
+++ b/roles/mailman/files/django_fedora.py
@@ -1,9 +1,7 @@
-from django.core.exceptions import DisallowedHost
from django.http import UnreadablePostError
from pylibmc import Error as MemcachedError
EXCLUDED = (
- DisallowedHost,
UnreadablePostError,
MemcachedError,
)
diff --git a/roles/mailman/templates/settings.py.j2 b/roles/mailman/templates/settings.py.j2
index 308de0d8f..6dc40a716 100644
--- a/roles/mailman/templates/settings.py.j2
+++ b/roles/mailman/templates/settings.py.j2
@@ -343,6 +343,9 @@ LOGGING = {
'filename': '/var/log/hyperkitty/hyperkitty.log',
'formatter': 'verbose',
},
+ 'null': {
+ 'class': 'logging.NullHandler',
+ },
},
'loggers': {
'django.request': {
@@ -354,14 +357,9 @@ LOGGING = {
],
'level': 'DEBUG',
},
- 'django.security': {
- 'handlers': [
- 'file',
- {% if env == 'production' %}
- 'mail_admins',
- {% endif %}
- ],
- 'level': 'DEBUG',
+ 'django.security.DisallowedHost': {
+ 'handlers': ['null'],
+ 'propagate': False,
},
},
'formatters': {