# HG changeset patch # User Brian Neal # Date 1334429906 18000 # Node ID cbbe7a2758873e96ca28d3b41aabdf1b9914f1b9 # Parent e17fc6bbb9b08289431916bd955f8b81199c5fec For Django 1.4, add the require_debug_false filter to the logging config. diff -r e17fc6bbb9b0 -r cbbe7a275887 madeira/settings/local.py --- a/madeira/settings/local.py Sat Apr 14 13:51:02 2012 -0500 +++ b/madeira/settings/local.py Sat Apr 14 13:58:26 2012 -0500 @@ -42,6 +42,11 @@ 'format': '%(asctime)s %(levelname)s %(message)s' }, }, + 'filters': { + 'require_debug_false': { + '()': 'django.utils.log.RequireDebugFalse' + }, + }, 'handlers': { 'console': { 'class': 'logging.StreamHandler', @@ -61,6 +66,7 @@ 'class': 'django.utils.log.AdminEmailHandler', 'level': 'ERROR', 'formatter': 'simple', + 'filters': ['require_debug_false'], }, }, 'loggers': { diff -r e17fc6bbb9b0 -r cbbe7a275887 madeira/settings/production.py --- a/madeira/settings/production.py Sat Apr 14 13:51:02 2012 -0500 +++ b/madeira/settings/production.py Sat Apr 14 13:58:26 2012 -0500 @@ -52,6 +52,11 @@ 'format': '%(asctime)s %(levelname)s %(message)s' }, }, + 'filters': { + 'require_debug_false': { + '()': 'django.utils.log.RequireDebugFalse' + }, + }, 'handlers': { 'console': { 'class': 'logging.StreamHandler', @@ -71,6 +76,7 @@ 'class': 'django.utils.log.AdminEmailHandler', 'level': 'ERROR', 'formatter': 'simple', + 'filters': ['require_debug_false'], }, }, 'loggers': {