Skip to content
Snippets Groups Projects
Commit 97825ddb authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Show host alias instead of hostname in admin notifications

Fixes #56
parent fc72ac35
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ namespace ATxService
return;
}
var subject = $"{ServiceName} - {Environment.MachineName} - Admin Notification";
var subject = $"{ServiceName} - {_config.HostAlias} - Admin Notification";
var body = $"Notification from '{_config.HostAlias}' [{Environment.MachineName}] (via NLog)\n\n" +
$"{LogFormatDefault}\n\n" +
"NOTE: messages of the same log level won't be sent via email for the\n" +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment