Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created February 13, 2014 11:41
Show Gist options
  • Save justinvdm/8973685 to your computer and use it in GitHub Desktop.
Save justinvdm/8973685 to your computer and use it in GitHub Desktop.
}diff --git a/go/settings.py b/go/settings.py
index 9277b8e..d4ddd02 100644
--- a/go/settings.py
+++ b/go/settings.py
@@ -212,6 +212,10 @@ LOGGING = {
},
},
'handlers': {
+ 'sentry': {
+ 'level': 'ERROR',
+ 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler',
+ },
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
@@ -230,7 +234,7 @@ LOGGING = {
},
},
'root': {
- 'handlers': ['mail_admins'],
+ 'handlers': ['sentry'],
'level': 'ERROR',
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment