From 379214348e48799d4f3965bc714921697c5673c5 Mon Sep 17 00:00:00 2001 From: Roman Afanaskin Date: Mon, 21 Sep 2015 22:36:06 +0300 Subject: [PATCH] Remove excess "loggers" from LOGGING setting --- .../config/settings/common.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/{{cookiecutter.repo_name}}/config/settings/common.py b/{{cookiecutter.repo_name}}/config/settings/common.py index b74f72ba..575bb6fd 100644 --- a/{{cookiecutter.repo_name}}/config/settings/common.py +++ b/{{cookiecutter.repo_name}}/config/settings/common.py @@ -260,15 +260,13 @@ LOGGING = { 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', - 'propagate': True, - }, - 'loggers': { - 'django.security.DisallowedHost': { - 'level': 'ERROR', - 'handlers': ['console', 'mail_admins'], - 'propagate': True, - }, + 'propagate': True }, + 'django.security.DisallowedHost': { + 'level': 'ERROR', + 'handlers': ['console', 'mail_admins'], + 'propagate': True + } } } {% if cookiecutter.use_celery == "y" %}