Skip to content

Instantly share code, notes, and snippets.

@shadow-identity
Last active August 29, 2015 14:00
Show Gist options
  • Save shadow-identity/11317495 to your computer and use it in GitHub Desktop.
Save shadow-identity/11317495 to your computer and use it in GitHub Desktop.
LOGGING = {
"version": 1,
"disable_existing_loggers": True,
# "filters": {
# "require_debug_false": {
# "()": "django.utils.log.RequireDebugFalse"
# }
# },
"handlers": {
"mail_admins": {
"level": "DEBUG",
# "filters": ["require_debug_false"],
"class": "django.utils.log.AdminEmailHandler"
},
'all': {
'level': "DEBUG",
'class': 'logging.StreamHandler',
}
},
"loggers": {
# 'django': {
# 'handlers': ['mail_admins', 'all'],
# 'propagate': True,
# 'level': 'DEBUG',
# },
"django.request": {
"handlers": ["mail_admins", 'all'],
"level": "DEBUG",
"propagate": True,
},
"eyevalid.apps.ghost.tasks.run_ghost_script": {
"level": "ERROR",
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment