sentry: integration with error 500 page

This commit is contained in:
2018-10-10 02:07:13 +02:00
parent f7be284b30
commit bdd8427758
4 changed files with 654 additions and 621 deletions

View File

@ -0,0 +1,15 @@
{% extends "core/base.jinja" %}
{% block head %}
{{ super() }}
<script src="https://browser.sentry-cdn.com/4.0.6/bundle.min.js" crossorigin="anonymous"></script>
{% endblock head %}
{% block content %}
<h3>{% trans %}500, Server Error{% endtrans %}</h3>
{% if request.sentry_dsn %}
<script>
Sentry.init({ dsn: '{{ request.sentry_dsn }}' });
Sentry.showReportDialog({ eventId: '{{ request.sentry_last_event_id() }}' })
</script>
{% endif %}
{% endblock content %}