use try catch around sentry logging

This commit is contained in:
Brian Gough 2017-03-03 16:05:56 +00:00
parent 5fc5a86b31
commit dfb2a069c0

View file

@ -47,7 +47,10 @@ module.exports = Logger =
newError[key] = value
error = newError
# send the error to sentry
@raven.captureException(error, {tags: tags, extra: extra, level: level})
try
@raven.captureException(error, {tags: tags, extra: extra, level: level})
catch
return # ignore any errors
info : ()->
@logger.info.apply(@logger, arguments)