Sentry handling all errors now
This commit is contained in:
parent
f0aff65337
commit
3cf1bb4586
|
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue