Disabled raven in dev

This commit is contained in:
vjrj 2018-03-04 12:41:46 +01:00
parent f85771f05a
commit db964d247f

View file

@ -3,10 +3,12 @@ import { Meteor } from 'meteor/meteor';
const ravenOptions = {}; const ravenOptions = {};
const ravenLogger = new RavenLogger({ const enabled = true && !Meteor.isDevelopment;
const ravenLogger = enabled ? new RavenLogger({
publicDSN: Meteor.settings.public.sentryPublicDSN, // will be used on the client publicDSN: Meteor.settings.public.sentryPublicDSN, // will be used on the client
shouldCatchConsoleError: true, // default shouldCatchConsoleError: true, // default
trackUser: true // default trackUser: true // default
}, ravenOptions); }, ravenOptions) : { log: (error) => { console.log(error); } };
export default ravenLogger; export default ravenLogger;