Adding MachineName to Slack Notification username so you tell where it came from in different environments
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user