Commits

Vincent Hillenbrink  committed 5243251

Updated settings.log.LOGGING for Django 1.5

  • Participants
  • Parent commits 7d8cc46

Comments (0)

Files changed (1)

File etc/settings/log.py

 LOGGING = {
     'version': 1,
     'disable_existing_loggers': True,
+    'filters': {
+         'require_debug_false': {
+             '()': 'django.utils.log.RequireDebugFalse',
+         },
+     },
     'formatters': {
         'verbose': {
             'format': '%(asctime)s %(levelname)-8s %(name)s: %(message)s',
         },
         'mail_admins': {
             'level': 'ERROR',
+            'filters': ['require_debug_false'],
             'class': 'django.utils.log.AdminEmailHandler',
-        }
+        },
     },
     'loggers': {
         '': {