@@ -196,33 +196,39 @@ INSTALLED_APPS = [
# stylesheets and js
'compressor',
'email_log',
]
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
# A sample logging configuration.
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"filters": {
"require_debug_false": {
"()": "django.utils.log.RequireDebugFalse"
}
},
"handlers": {
'console': {
'level': os.environ.get('DJANGO_LOG_LEVEL', 'WARNING'),
'class': 'logging.StreamHandler',
"mail_admins": {
"level": "ERROR",
"filters": ["require_debug_false"],
"class": "django.utils.log.AdminEmailHandler"
"loggers": {
'django': {
'handlers': ['console'],
'propagate': True,
"django.request": {
"handlers": ["mail_admins"],
"propagate": True,