13 lines
455 B
JavaScript
13 lines
455 B
JavaScript
import RavenLogger from 'meteor/flowkey:raven';
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
if (Meteor.isProduction) {
|
|
var ravenOptions = {};
|
|
|
|
export const ravenLogger = new RavenLogger({
|
|
publicDSN: Meteor.settings.public.sentryPublicDSN, // will be used on the client
|
|
privateDSN: Meteor.settings.sentryPrivateDSN, // will be used on the server
|
|
shouldCatchConsoleError: true, // default
|
|
trackUser: false, // default
|
|
}, ravenOptions);
|
|
}
|