import RavenLogger from 'meteor/flowkey:raven';
import { Meteor } from 'meteor/meteor';

const ravenOptions = {};

export const ravenLogger = new RavenLogger({
  publicDSN: Meteor.settings.public.sentryPublicDSN,
  shouldCatchConsoleError: true, // default true
  trackUser: true, // default false
}, ravenOptions);

@@ -108,16 +108,126 @@
  = %7B%7D;%0A%0A
+const enabled = Meteor.settings.public.sentryPublicDSN && Meteor.settings.public.sentryPublicDSN.length %3E 0;%0A%0A
 export c
@@ -244,16 +244,26 @@
 Logger =
+ enabled ?
  new Rav
@@ -411,16 +411,16 @@
 t false%0A
-
 %7D, raven
@@ -427,10 +427,56 @@
 Options)
+ : %7B log: (error) =%3E %7B console.log(error); %7D %7D
 ;%0A

Make raven use optional