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

Send system health report to a specific address instead of the admin

Refers to #20
parent ac7f96da
No related branches found
No related tags found
No related merge requests found
...@@ -254,8 +254,7 @@ namespace ATxService ...@@ -254,8 +254,7 @@ namespace ATxService
report += $"\nPrevious system health report notification was sent {elapsedHuman}.\n"; report += $"\nPrevious system health report notification was sent {elapsedHuman}.\n";
_status.LastStartupNotification = DateTime.Now; _status.LastStartupNotification = DateTime.Now;
// TODO: recipients for the health report should be configurable, defaulting to admin return SendEmail(_config.HealthReportEmailAddress, "system health report", report);
return SendAdminEmail(report, "system health report");
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment