Updated sentry modal SDK

Specified default environment for issues
This commit is contained in:
Théo DURR
2022-08-27 18:46:22 +02:00
parent 7a914f5e94
commit 4f9c2724f5
2 changed files with 10 additions and 2 deletions

View File

@ -675,7 +675,11 @@ if "test" in sys.argv:
if SENTRY_DSN:
# Connection to sentry
sentry_sdk.init(dsn=SENTRY_DSN, integrations=[DjangoIntegration()])
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[DjangoIntegration()],
environment="production",
)
SITH_FRONT_DEP_VERSIONS = {