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

Add note about email rate limiting for log messages.

Refers to #4
parent d12bf1b8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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