From 29139bf360f06c346d1bac8b4e5b0ea91188b9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Sat, 27 Aug 2022 18:58:12 +0200 Subject: [PATCH] SENTRY_ENV can now be overriden in settings.py --- sith/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sith/settings.py b/sith/settings.py index 5b292536..6a17446a 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -643,6 +643,7 @@ SITH_MAILING_FETCH_KEY = "IloveMails" SITH_GIFT_LIST = [("AE Tee-shirt", _("AE tee-shirt"))] SENTRY_DSN = "" +SENTRY_ENV = "production" try: from .settings_custom import * @@ -678,7 +679,7 @@ if SENTRY_DSN: sentry_sdk.init( dsn=SENTRY_DSN, integrations=[DjangoIntegration()], - environment="production", + environment=SENTRY_ENV, )