Add Sentry logging

This commit is contained in:
Tom Price
2015-11-10 10:50:24 +00:00
parent 887e932c64
commit 2e1ab96186
3 changed files with 14 additions and 0 deletions

View File

@@ -6,5 +6,6 @@
<div class="text-center">
<h1>500: Server error</h1>
<img src="{% static 'imgs/500.jpg' %}"/>
<p>If you need assistance, you may reference this error as <strong>{{ request.sentry.id }}</strong>.</p>
</div>
{% endblock %}

View File

@@ -1,4 +1,5 @@
{% load static from staticfiles %}
{% load raven %}
<!DOCTYPE html>
@@ -21,6 +22,7 @@
{% endblock %}
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script>Raven.config('{% sentry_public_dsn %}').install()</script>
{% block preload_js %}
{% endblock %}