todos-contra-el-fuego-web/imports/startup/client/ravenLogger.js
2017-12-06 17:10:47 +01:00

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);
}