Merge pull request #2238 from SkynetLabs/revert-1428-sevey/mute-more-pings

Revert "Mute check failures unless server is down"
This commit is contained in:
Karol Wypchło 2022-09-21 14:00:47 +02:00 committed by GitHub
commit c4243968e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -232,8 +232,7 @@ async def check_health():
message += "{}/{} CRITICAL checks failed over the last {} hours! ".format( message += "{}/{} CRITICAL checks failed over the last {} hours! ".format(
critical_checks_failed, critical_checks_total, CHECK_HOURS critical_checks_failed, critical_checks_total, CHECK_HOURS
) )
# Disabling as it creates notification fatigue. force_notify = True
# force_notify = True
else: else:
message += "All {} critical checks passed. ".format(critical_checks_total) message += "All {} critical checks passed. ".format(critical_checks_total)
@ -241,8 +240,7 @@ async def check_health():
message += "{}/{} extended checks failed over the last {} hours! ".format( message += "{}/{} extended checks failed over the last {} hours! ".format(
extended_checks_failed, extended_checks_total, CHECK_HOURS extended_checks_failed, extended_checks_total, CHECK_HOURS
) )
# Disabling as it creates notification fatigue. force_notify = True
# force_notify = True
else: else:
message += "All {} extended checks passed. ".format(extended_checks_total) message += "All {} extended checks passed. ".format(extended_checks_total)