RavenLogger in dev if enabled
This commit is contained in:
parent
783967c0e1
commit
12bf1ef09d
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import { Meteor } from 'meteor/meteor';
|
||||||
|
|
||||||
const ravenOptions = {};
|
const ravenOptions = {};
|
||||||
const publicDSN = Meteor.settings.public.sentryPublicDSN;
|
const publicDSN = Meteor.settings.public.sentryPublicDSN;
|
||||||
const enabled = !Meteor.isDevelopment && publicDSN;
|
const enabled = !!publicDSN;
|
||||||
|
|
||||||
const ravenLogger = enabled ? new RavenLogger({
|
const ravenLogger = enabled ? new RavenLogger({
|
||||||
publicDSN, // will be used on the client
|
publicDSN, // will be used on the client
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue