Added raven/sentry to server side
This commit is contained in:
parent
44428be8aa
commit
45a63548c7
3 changed files with 15 additions and 2 deletions
|
|
@ -5,9 +5,8 @@ const ravenOptions = {};
|
||||||
|
|
||||||
const ravenLogger = new RavenLogger({
|
const ravenLogger = new RavenLogger({
|
||||||
publicDSN: Meteor.settings.public.sentryPublicDSN, // will be used on the client
|
publicDSN: Meteor.settings.public.sentryPublicDSN, // will be used on the client
|
||||||
privateDSN: Meteor.settings.sentryPrivateDSN, // will be used on the server
|
|
||||||
shouldCatchConsoleError: true, // default
|
shouldCatchConsoleError: true, // default
|
||||||
trackUser: false // default
|
trackUser: true // default
|
||||||
}, ravenOptions);
|
}, ravenOptions);
|
||||||
|
|
||||||
export default ravenLogger;
|
export default ravenLogger;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import './ravenLogger';
|
||||||
import './i18n';
|
import './i18n';
|
||||||
import './accounts';
|
import './accounts';
|
||||||
import './api';
|
import './api';
|
||||||
|
|
|
||||||
13
imports/startup/server/ravenLogger.js
Normal file
13
imports/startup/server/ravenLogger.js
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
import RavenLogger from 'meteor/flowkey:raven';
|
||||||
|
import { Meteor } from 'meteor/meteor';
|
||||||
|
|
||||||
|
const ravenOptions = {};
|
||||||
|
|
||||||
|
const ravenLogger = new RavenLogger({
|
||||||
|
publicDSN: Meteor.settings.public.sentryPublicDSN,
|
||||||
|
privateDSN: Meteor.settings.sentryPrivateDSN,
|
||||||
|
shouldCatchConsoleError: true, // default
|
||||||
|
trackUser: true // default
|
||||||
|
}, ravenOptions);
|
||||||
|
|
||||||
|
export default ravenLogger;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue