Adding MachineName to Slack Notification username so you tell where it came from in different environments

This commit is contained in:
Jeavon
2017-06-26 16:34:38 +01:00
parent f615125c24
commit 07356db30e

View File

@@ -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);