do not send discord message on success

This commit is contained in:
GroovieGermanikus 2024-07-11 10:40:16 +02:00
parent 28c643f575
commit 6e6e07b1e7
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 10 additions and 8 deletions

View File

@ -107,6 +107,7 @@ async fn main() -> ExitCode {
assert!(tasks_total > 0, "no results");
if !success {
let discord_body = create_discord_message(
&rpcnode_label,
checks_enabled,
@ -115,6 +116,7 @@ async fn main() -> ExitCode {
success,
);
send_webook_discord(discord_body).await;
}
if !success {
warn!(