mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
capture id's as tags, and pass attributes to sentry
This commit is contained in:
parent
f1abe1e03b
commit
06662f869f
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,10 @@ module.exports = Logger =
|
|||
if @raven?
|
||||
error = attributes.err or attributes.error
|
||||
if error?
|
||||
@raven.captureError(error, attributes)
|
||||
tags = {}
|
||||
for key, value of attributes
|
||||
tags[key] = value if key.match(/_id/) and typeof value == 'string'
|
||||
@raven.captureError(error, tags: tags, extra: attributes)
|
||||
err: ()->
|
||||
@logger.error.apply(@logger, arguments)
|
||||
warn: ()->
|
||||
|
|
Loading…
Reference in a new issue