From 7e874ae45260fb0a5c82da40d3045214c41bbec2 Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Tue, 7 Aug 2012 13:25:59 +0200 Subject: [PATCH] Replace SENTRY_DEBUG switch by RAVEN_CONFIG['register_signals'] --- raven/contrib/django/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raven/contrib/django/models.py b/raven/contrib/django/models.py index efac5f994..3fb0cc341 100644 --- a/raven/contrib/django/models.py +++ b/raven/contrib/django/models.py @@ -163,7 +163,7 @@ def sentry_exception_handler(request=None, **kwargs): def actually_do_stuff(request=None, **kwargs): exc_info = sys.exc_info() try: - if (django_settings.DEBUG and not getattr(django_settings, 'SENTRY_DEBUG', False)) or getattr(exc_info[1], 'skip_sentry', False): + if not getattr(django_settings, 'RAVEN_CONFIG', {}).get('register_signals', not django_settings.DEBUG) or getattr(exc_info[1], 'skip_sentry', False): return if transaction.is_dirty():