diff --git a/chicago/settings.py b/chicago/settings.py index bf94ae2..4b7d246 100644 --- a/chicago/settings.py +++ b/chicago/settings.py @@ -26,7 +26,7 @@ GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY", "") # Configure Sentry for error logging -if os.getenv("SENTRY_DSN"): +if os.getenv("SENTRY_DSN") and os.getenv("PRODUCTION"): sentry_sdk.init( dsn=os.environ["SENTRY_DSN"], integrations=[DjangoIntegration()],