mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +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" %}
|
{% extends "core/base.jinja" %}
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ 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 %}
|
{% endblock head %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@ -675,7 +675,11 @@ if "test" in sys.argv:
|
|||||||
|
|
||||||
if SENTRY_DSN:
|
if SENTRY_DSN:
|
||||||
# Connection to sentry
|
# 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 = {
|
SITH_FRONT_DEP_VERSIONS = {
|
||||||
|
Loading…
Reference in New Issue
Block a user