From 07356db30eb291efb7e0b3939b45aaccf73ee779 Mon Sep 17 00:00:00 2001 From: Jeavon Date: Mon, 26 Jun 2017 16:34:38 +0100 Subject: [PATCH] Adding MachineName to Slack Notification username so you tell where it came from in different environments --- .../HealthCheck/NotificationMethods/SlackNotificationMethod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/HealthCheck/NotificationMethods/SlackNotificationMethod.cs b/src/Umbraco.Web/HealthCheck/NotificationMethods/SlackNotificationMethod.cs index 2dba3b005c..2fc127af3f 100644 --- a/src/Umbraco.Web/HealthCheck/NotificationMethods/SlackNotificationMethod.cs +++ b/src/Umbraco.Web/HealthCheck/NotificationMethods/SlackNotificationMethod.cs @@ -101,7 +101,7 @@ namespace Umbraco.Web.HealthCheck.NotificationMethods Channel = Channel, Attachments = attachments, IconEmoji = icon, - Username = Username, + Username = string.Format("{0} [{1}]", Username, Environment.MachineName), Text = messageText }; await slackClient.PostAsync(slackMessage);