mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use try catch around sentry logging
This commit is contained in:
parent
5fc5a86b31
commit
dfb2a069c0
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue