Sentry handling all errors now

This commit is contained in:
Felipe Martín 2013-05-23 19:24:20 +02:00
parent f0aff65337
commit 3cf1bb4586
1 changed files with 9 additions and 4 deletions

View File

@ -36,6 +36,11 @@ RAVEN_CONFIG = {
'dsn': 'http://809b0824b821462db7902f96cf5ad2c9:bf82b9625be84d9fb2f2a15af1009176@sentry.fmartingr.com/4', 'dsn': 'http://809b0824b821462db7902f96cf5ad2c9:bf82b9625be84d9fb2f2a15af1009176@sentry.fmartingr.com/4',
} }
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'raven.contrib.django.raven_compat.middleware.SentryResponseErrorIdMiddleware',
'raven.contrib.django.raven_compat.middleware.Sentry404CatchMiddleware',
)
INSTALLED_APPS = INSTALLED_APPS + ( INSTALLED_APPS = INSTALLED_APPS + (
'raven.contrib.django.raven_compat', 'raven.contrib.django.raven_compat',
'gunicorn' 'gunicorn'
@ -46,7 +51,7 @@ LOGGING = {
'version': 1, 'version': 1,
'disable_existing_loggers': True, 'disable_existing_loggers': True,
'root': { 'root': {
'level': 'WARNING', 'level': 'DEBUG',
'handlers': ['sentry'], 'handlers': ['sentry'],
}, },
'formatters': { 'formatters': {
@ -68,17 +73,17 @@ LOGGING = {
'loggers': { 'loggers': {
'django.db.backends': { 'django.db.backends': {
'level': 'ERROR', 'level': 'ERROR',
'handlers': ['console'], 'handlers': ['console', 'sentry'],
'propagate': False, 'propagate': False,
}, },
'raven': { 'raven': {
'level': 'DEBUG', 'level': 'DEBUG',
'handlers': ['console'], 'handlers': ['console', 'sentry'],
'propagate': False, 'propagate': False,
}, },
'sentry.errors': { 'sentry.errors': {
'level': 'DEBUG', 'level': 'DEBUG',
'handlers': ['console'], 'handlers': ['console', 'sentry'],
'propagate': False, 'propagate': False,
}, },
}, },