Adding Sentry/Raven for error tracking

This commit is contained in:
James Barnsley
2017-09-19 16:57:59 +12:00
parent 3844fca6db
commit 50f3d508bc
10 changed files with 99 additions and 16 deletions

View File

@ -35,6 +35,15 @@ import LibraryTracks from './views/library/LibraryTracks'
import LibraryPlaylists from './views/library/LibraryPlaylists'
import LibraryBrowse from './views/library/LibraryBrowse'
/*
// Hijack console error for Raven to capture
var originalConsoleError = console.error;
console.error = function(message, error){
Raven.captureException(message, error);
originalConsoleError.apply(this, arguments)
}
*/
// setup our analytics tracking
ReactGA.initialize('UA-64701652-3');
function handleUpdate() {