From: Aleksander Ɓukasz Date: Mon, 30 Dec 2013 13:34:09 +0000 (+0100) Subject: Start logging with ravenjs X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/7064374636c2a7311fcb9c872ff7e877154ff7ef Start logging with ravenjs --- diff --git a/apps/wiki/static/wiki/editor b/apps/wiki/static/wiki/editor index db58e0a7..955c8c07 160000 --- a/apps/wiki/static/wiki/editor +++ b/apps/wiki/static/wiki/editor @@ -1 +1 @@ -Subproject commit db58e0a751440706b5e0407e5a4a9ebb6cb0f8aa +Subproject commit 955c8c0702512cabbdcbe296ae278f5e7ff2f497 diff --git a/apps/wiki/templates/wiki/bootstrap.html b/apps/wiki/templates/wiki/bootstrap.html index 3bcd2621..1e3fa58b 100644 --- a/apps/wiki/templates/wiki/bootstrap.html +++ b/apps/wiki/templates/wiki/bootstrap.html @@ -4,7 +4,12 @@ - + {% if RAVEN_CONFIG %} + + + {% endif %} @@ -24,6 +29,21 @@ var config = { rootSelector: '#editor_root', jsonifySentPayload: false, + + logging: { + handlers: { + 'sentry': { + level: 'info', + handler: 'raven' + } + }, + loggers: { + '': { + level: 'info', + handlers: ['sentry'] + } + } + }, documentSaveUrl: function(id) { return '/editor/text/' + id + '/'; }, documentHistoryUrl: function(id) { return '/editor/history/' + id + '/'}, diff --git a/redakcja/context_processors.py b/redakcja/context_processors.py index 2724f832..1c268cd6 100644 --- a/redakcja/context_processors.py +++ b/redakcja/context_processors.py @@ -16,5 +16,6 @@ def settings(request): 'MEDIA_URL': settings.MEDIA_URL, 'STATIC_URL': settings.STATIC_URL, 'DEBUG': settings.DEBUG, + 'RAVEN_CONFIG': getattr(settings, 'RAVEN_CONFIG'), 'APP_VERSION': VERSION, }