changeset 65:cbbe7a275887

For Django 1.4, add the require_debug_false filter to the logging config.
author Brian Neal <bgneal@gmail.com>
date Sat, 14 Apr 2012 13:58:26 -0500 (2012-04-14)
parents e17fc6bbb9b0
children 9b9daefba97a
files madeira/settings/local.py madeira/settings/production.py
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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': {
--- 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': {