Moved filter at handler level

Filters at logger level are only processed for messages directly
logged to the specific logger, not for loggers in the parent chain.
As the 'django' logger is almost always processed as an inherited
logger, it makes more sense to filter messages at the 'console'
handler level.
This commit is contained in:
Claude Paroz 2012-09-29 23:45:28 +02:00
parent f0f327bbfe
commit 10e505b1b3
1 changed files with 1 additions and 1 deletions

View File

@ -41,6 +41,7 @@ DEFAULT_LOGGING = {
'handlers': {
'console':{
'level': 'INFO',
'filters': ['require_debug_true'],
'class': 'logging.StreamHandler',
},
'null': {
@ -55,7 +56,6 @@ DEFAULT_LOGGING = {
'loggers': {
'django': {
'handlers': ['console'],
'filters': ['require_debug_true'],
},
'django.request': {
'handlers': ['mail_admins'],