Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Only use Sentry if not DEBUG.

  • Loading branch information...
commit 6251f2a5136f157c18faed34d417ab6d9262ff17 1 parent 7ab5f9f
Jacob Kaplan-Moss authored April 01, 2013
2  django_docs/settings.py
@@ -85,7 +85,7 @@
85 85
             'debug_toolbar.middleware.DebugToolbarMiddleware')
86 86
 
87 87
 # Log errors to Sentry instead of email, if available.
88  
-if 'sentry_dsn' in SECRETS:
  88
+if 'sentry_dsn' in SECRETS and not DEBUG:
89 89
     INSTALLED_APPS.append('raven.contrib.django')
90 90
     SENTRY_DSN = SECRETS['sentry_dsn']
91 91
     LOGGING["loggers"]["django.request"]["handlers"].remove("mail_admins")
2  django_www/settings.py
@@ -119,7 +119,7 @@
119 119
             'debug_toolbar.middleware.DebugToolbarMiddleware')
120 120
 
121 121
 # Log errors to Sentry instead of email, if available.
122  
-if 'sentry_dsn' in SECRETS:
  122
+if 'sentry_dsn' in SECRETS and not DEBUG:
123 123
     INSTALLED_APPS.append('raven.contrib.django')
124 124
     SENTRY_DSN = SECRETS['sentry_dsn']
125 125
     LOGGING["loggers"]["django.request"]["handlers"].remove("mail_admins")

0 notes on commit 6251f2a

Please sign in to comment.
Something went wrong with that request. Please try again.