diff gpp/settings/local.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 3fe2eced1be7
children
line wrap: on
line diff
--- 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': {