diff --git a/cppquiz/settings.py b/cppquiz/settings.py index 20a4245..675eabc 100644 --- a/cppquiz/settings.py +++ b/cppquiz/settings.py @@ -158,8 +158,15 @@ 'filename': here('quiz.log'), 'formatter': 'simple_stamped', }, + 'null': { + 'class': 'logging.NullHandler', + }, }, 'loggers': { + 'django.security.DisallowedHost': { + 'handlers': ['null'], + 'propagate': False, + }, 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR',