diff --git a/compte_agglo_montpellier/settings.py b/compte_agglo_montpellier/settings.py index 558f039..100598f 100644 --- a/compte_agglo_montpellier/settings.py +++ b/compte_agglo_montpellier/settings.py @@ -538,11 +538,24 @@ except ImportError, e: pass if RAVEN_CONFIG_DSN: + RAVEN_CONFIG = { + 'dsn': RAVEN_CONFIG_DSN, + } + INSTALLED_APPS += ('raven.contrib.django.raven_compat', ) LOGGING['handlers']['sentry'] = { 'level': 'ERROR', - 'class': 'raven.handlers.logging.SentryHandler', - 'dsn': RAVEN_CONFIG_DSN, - } + 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler', + } + LOGGING['loggers']['raven'] = { + 'level': 'DEBUG', + 'handlers': ['console'], + 'propagate': False, + } + LOGGING['loggers']['sentry.errors'] = { + 'level': 'DEBUG', + 'handlers': ['console'], + 'propagate': False, + } for logger in LOGGING['loggers'].values(): logger['handlers'].append('sentry')