settings: do not log db message at the debug level

This commit is contained in:
Benjamin Dauvergne 2013-12-09 14:51:11 +01:00
parent df837dd4a9
commit d6a158d858
1 changed files with 5 additions and 0 deletions

View File

@ -320,6 +320,11 @@ LOGGING = {
'handlers': [],
'propagate': True,
},
'django.db': {
'handlers': ['mail_admins', 'syslog'] + (['console'] if DEBUG else []),
'level': 'INFO',
'propagate': False,
},
'': {
'handlers': ['mail_admins', 'syslog'] + (['console'] if DEBUG else []),
'level': 'DEBUG' if DEBUG else 'INFO',