From 06662f869f53165d5c2c614645a0cea65dfa85af Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 17 Dec 2015 16:41:32 +0000 Subject: [PATCH] capture id's as tags, and pass attributes to sentry --- libraries/logger/logging-manager.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/logger/logging-manager.coffee b/libraries/logger/logging-manager.coffee index ddcd1892cc..852ea90339 100644 --- a/libraries/logger/logging-manager.coffee +++ b/libraries/logger/logging-manager.coffee @@ -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: ()->