# HG changeset patch # User Brian Neal # Date 1336009396 18000 # Node ID c2ba9c3395daccb7ccc09cc7e7e39ad9b0d947e2 # Parent 0a0a069ab645b5838aa694919136737b961e435f For Django 1.4, add a require_debug_false logging filter. diff -r 0a0a069ab645 -r c2ba9c3395da gpp/settings/local.py --- a/gpp/settings/local.py Wed May 02 20:38:17 2012 -0500 +++ b/gpp/settings/local.py Wed May 02 20:43:16 2012 -0500 @@ -43,6 +43,11 @@ 'format': '%(asctime)s %(levelname)s %(message)s' }, }, + 'filters': { + 'require_debug_false': { + '()': 'django.utils.log.RequireDebugFalse' + }, + }, 'handlers': { 'console': { 'class': 'logging.StreamHandler', @@ -62,6 +67,7 @@ 'class': 'django.utils.log.AdminEmailHandler', 'level': 'ERROR', 'formatter': 'simple', + 'filters': ['require_debug_false'], }, }, 'loggers': { diff -r 0a0a069ab645 -r c2ba9c3395da gpp/settings/production.py --- a/gpp/settings/production.py Wed May 02 20:38:17 2012 -0500 +++ b/gpp/settings/production.py Wed May 02 20:43:16 2012 -0500 @@ -55,6 +55,11 @@ 'format': '%(asctime)s %(levelname)s %(message)s' }, }, + 'filters': { + 'require_debug_false': { + '()': 'django.utils.log.RequireDebugFalse' + }, + }, 'handlers': { 'console': { 'class': 'logging.StreamHandler', @@ -74,6 +79,7 @@ 'class': 'django.utils.log.AdminEmailHandler', 'level': 'ERROR', 'formatter': 'simple', + 'filters': ['require_debug_false'], }, }, 'loggers': {