From 4f9c2724f58323695d22cfd5971aab17d70a4fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Sat, 27 Aug 2022 18:46:22 +0200 Subject: [PATCH] Updated sentry modal SDK Specified default environment for issues --- core/templates/core/500.jinja | 6 +++++- sith/settings.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/templates/core/500.jinja b/core/templates/core/500.jinja index d9abc1a6..eecc5e6c 100644 --- a/core/templates/core/500.jinja +++ b/core/templates/core/500.jinja @@ -1,7 +1,11 @@ {% extends "core/base.jinja" %} {% block head %} {{ super() }} - + {% endblock head %} {% block content %} diff --git a/sith/settings.py b/sith/settings.py index 37d00a00..5b292536 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -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 = {