mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
Updated sentry modal SDK
Specified default environment for issues
This commit is contained in:
parent
7a914f5e94
commit
4f9c2724f5
@ -1,7 +1,11 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<script src="{{ static('core/js/sentry/bundle.min.js') }}" crossorigin="anonymous"></script>
|
||||
<script
|
||||
src="https://browser.sentry-cdn.com/7.11.1/bundle.min.js"
|
||||
integrity="sha384-qcYSo5+/E8hEkPmHFa79GRDsGT84SRhBJHRw3+dbQyh0UwueiFP1jCsRBClEREcs"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user