From 7982316c99796728ad381ba0fe60d1509ecf12b0 Mon Sep 17 00:00:00 2001 From: Forest Gregg Date: Fri, 12 Jan 2024 21:45:41 -0500 Subject: [PATCH] only use sentry in production --- chicago/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()],