Disabled raven in dev
This commit is contained in:
parent
f85771f05a
commit
db964d247f
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue