From 497e0b3bdee19dda0efef70b368433e489019b67 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Fri, 2 Feb 2018 18:05:08 +0100 Subject: [PATCH] Add note about email rate limiting for log messages. Refers to #4 --- ATxService/AutoTx.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index 975fe7a..d7dd774 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -115,8 +115,11 @@ namespace ATxService var subject = string.Format("{0} - {1} - Admin Notification", ServiceName, Environment.MachineName); - var body = string.Format("Notification from '{0}' [{1}] (via NLog)\n\n{2}", - _config.HostAlias, Environment.MachineName, LogFormatDefault); + var body = string.Format("Notification from '{0}' [{1}] (via NLog)\n\n{2}\n\n" + + "NOTE: log messages of the same level will not be sent via email for the\n" + + "next {3} minutes, please check the log file on the corresponding host!", + _config.HostAlias, Environment.MachineName, LogFormatDefault, + _config.AdminNotificationDelta); var logConfig = LogManager.Configuration; -- GitLab