Commit 3ad58049 authored by fred's avatar fred
Browse files

add log settings so errors are sent to the admin

parent 59ab76c2
...@@ -171,6 +171,29 @@ CACHES = { ...@@ -171,6 +171,29 @@ CACHES = {
}, },
} }
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
try: try:
from local_settings import * from local_settings import *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment