comparison 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
comparison
equal deleted inserted replaced
570:0a0a069ab645 571:c2ba9c3395da
41 }, 41 },
42 'simple': { 42 'simple': {
43 'format': '%(asctime)s %(levelname)s %(message)s' 43 'format': '%(asctime)s %(levelname)s %(message)s'
44 }, 44 },
45 }, 45 },
46 'filters': {
47 'require_debug_false': {
48 '()': 'django.utils.log.RequireDebugFalse'
49 },
50 },
46 'handlers': { 51 'handlers': {
47 'console': { 52 'console': {
48 'class': 'logging.StreamHandler', 53 'class': 'logging.StreamHandler',
49 'level': 'DEBUG', 54 'level': 'DEBUG',
50 'formatter': 'simple', 55 'formatter': 'simple',
60 }, 65 },
61 'mail_admins': { 66 'mail_admins': {
62 'class': 'django.utils.log.AdminEmailHandler', 67 'class': 'django.utils.log.AdminEmailHandler',
63 'level': 'ERROR', 68 'level': 'ERROR',
64 'formatter': 'simple', 69 'formatter': 'simple',
70 'filters': ['require_debug_false'],
65 }, 71 },
66 }, 72 },
67 'loggers': { 73 'loggers': {
68 'django':{ 74 'django':{
69 'level': 'WARNING', 75 'level': 'WARNING',