From 97825ddb35e1c465f7e366c1c1c6ad4557744b71 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Wed, 25 Jul 2018 09:19:12 +0200 Subject: [PATCH] Show host alias instead of hostname in admin notifications Fixes #56 --- ATxService/AutoTx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index 24e5d56..0397a85 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -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" + -- GitLab