Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
570:0a0a069ab645 | 571:c2ba9c3395da |
---|---|
53 }, | 53 }, |
54 'simple': { | 54 'simple': { |
55 'format': '%(asctime)s %(levelname)s %(message)s' | 55 'format': '%(asctime)s %(levelname)s %(message)s' |
56 }, | 56 }, |
57 }, | 57 }, |
58 'filters': { | |
59 'require_debug_false': { | |
60 '()': 'django.utils.log.RequireDebugFalse' | |
61 }, | |
62 }, | |
58 'handlers': { | 63 'handlers': { |
59 'console': { | 64 'console': { |
60 'class': 'logging.StreamHandler', | 65 'class': 'logging.StreamHandler', |
61 'level': 'DEBUG', | 66 'level': 'DEBUG', |
62 'formatter': 'simple', | 67 'formatter': 'simple', |
72 }, | 77 }, |
73 'mail_admins': { | 78 'mail_admins': { |
74 'class': 'django.utils.log.AdminEmailHandler', | 79 'class': 'django.utils.log.AdminEmailHandler', |
75 'level': 'ERROR', | 80 'level': 'ERROR', |
76 'formatter': 'simple', | 81 'formatter': 'simple', |
82 'filters': ['require_debug_false'], | |
77 }, | 83 }, |
78 }, | 84 }, |
79 'loggers': { | 85 'loggers': { |
80 'django':{ | 86 'django':{ |
81 'level': 'WARNING', | 87 'level': 'WARNING', |