From c26f94322b7d962a8013827307a32b535b1819c0 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Thu, 6 Oct 2022 12:47:04 +0200 Subject: [PATCH] fix(sentry-mattermost): more details --- functions/sentry-mattermost/function.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/sentry-mattermost/function.js b/functions/sentry-mattermost/function.js index b63858e..147b82d 100644 --- a/functions/sentry-mattermost/function.js +++ b/functions/sentry-mattermost/function.js @@ -10,7 +10,9 @@ const forwardSentryEvent = (payload, channel) => { const markdown = ` :warning: ${ event.extra && event.extra.namespace ? `**${event.extra.namespace}**` : `` - } **${event.title}** ${event.environment ? `[${event.environment}]` : ``} + } **${payload.message || event.title}** ${ + event.environment ? `[${event.environment}]` : `` + } ${payload.culprit || ""}