Răsfoiți Sursa

allow passing options to sentry

Brian Gough 11 ani în urmă
părinte
comite
f1abe1e03b

+ 2 - 2
libraries/logger/logging-manager.coffee

@@ -7,9 +7,9 @@ module.exports = Logger =
 			serializers: bunyan.stdSerializers
 		return @
 	
-	initializeErrorReporting: (sentry_dsn) ->
+	initializeErrorReporting: (sentry_dsn, options) ->
 		raven = require "raven"
-		@raven = new raven.Client(sentry_dsn)
+		@raven = new raven.Client(sentry_dsn, options)
 	
 	info : ()->
 		@logger.info.apply(@logger, arguments)

+ 1 - 1
libraries/logger/package.json

@@ -6,7 +6,7 @@
     "type": "git",
     "url": "http://github.com/sharelatex/logger-sharelatex.git"
   },
-  "version": "1.0.0",
+  "version": "1.2.0",
   "dependencies": {
     "bunyan": "1.5.1",
     "coffee-script": "1.4.0",