settings: set syslog log level to DEBUG, and reset handlers on django.db logger

This commit is contained in:
Benjamin Dauvergne 2014-04-03 16:08:13 +02:00
parent b6cd5dcc5c
commit 8f9ae8e713
1 changed files with 5 additions and 4 deletions

View File

@ -408,19 +408,19 @@ LOGGING = {
},
'handlers': {
'null': {
'level':'DEBUG',
'level': 'DEBUG',
'class':'django.utils.log.NullHandler',
},
'console': {
'level':'DEBUG',
'level': 'DEBUG',
'class':'logging.StreamHandler',
'formatter': 'verbose',
'filters': ['cleaning'],
},
'syslog': {
'level': 'DEBUG' if DEBUG else 'INFO',
'level': 'DEBUG',
'address': '/dev/log',
'class':'logging.handlers.SysLogHandler',
'class': 'logging.handlers.SysLogHandler',
'filters': ['cleaning'],
},
'mail_admins': {
@ -437,6 +437,7 @@ LOGGING = {
'propagate': True,
},
'django.db': {
'handlers': ['null'],
'propagate': True,
},
'': {