SENTRY_ENV can now be overriden in settings.py

This commit is contained in:
Théo DURR 2022-08-27 18:58:12 +02:00
parent 4f9c2724f5
commit 29139bf360
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
1 changed files with 2 additions and 1 deletions

View File

@ -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,
)