Mercurial > public > sg101
diff gpp/settings/production.py @ 571:c2ba9c3395da
For Django 1.4, add a require_debug_false logging filter.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 02 May 2012 20:43:16 -0500 |
parents | abc4be5a82e5 |
children |
line wrap: on
line diff
--- 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': {