From aa2eeab353e489010a86bdb8075193e010b90f25 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Fri, 6 Nov 2015 17:08:50 -0500 Subject: [PATCH] Log Javascript errors to Sentry --- server/config.js | 3 +++ server/template.html | 6 ++++++ static/js/lib/raven.min.js | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 static/js/lib/raven.min.js diff --git a/server/config.js b/server/config.js index 6c273e9467e..b166764a9d5 100644 --- a/server/config.js +++ b/server/config.js @@ -18,6 +18,9 @@ module.exports = { // Analytics & Monitoring ga_tracker: process.env.GA_TRACKER || '', + // Error handling + sentry_dsn: process.env.SENTRY_DSN || '', + // Use minified JS libraries min: (process.env.NODE_ENV === 'production') ? '.min' : '' }; diff --git a/server/template.html b/server/template.html index 0caa161cdbf..318c8a32960 100644 --- a/server/template.html +++ b/server/template.html @@ -48,10 +48,16 @@ + + + +