From 5f76d1ca52e3a80dc12345bfb82aca12f898f007 Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Tue, 24 Nov 2020 07:49:51 -0700 Subject: [PATCH] remove error alert notification, subtract out siafile alerts --- setup-scripts/health-checker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup-scripts/health-checker.py b/setup-scripts/health-checker.py index 3b7094b1..2e3960ad 100755 --- a/setup-scripts/health-checker.py +++ b/setup-scripts/health-checker.py @@ -290,8 +290,10 @@ async def check_alerts(): force_notify = True if num_error_alerts > 0: message += "{} Error Alerts found! ".format(num_error_alerts) - force_notify = num_error_alerts > num_siafile_alerts + # Subtract out the siafile alerts from the warning alerts since we announce + # them separately + num_warning_alerts -= num_siafile_alerts message += "{} Warning Alerts found. ".format(num_warning_alerts) message += "{} SiaFiles with bad health found. ".format(num_siafile_alerts)