From d6932f49d7b57eb48ac3f281a4ce00bade6c5287 Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Mon, 14 Jun 2021 19:04:33 -0400 Subject: [PATCH] Remove swerr log in hbsAgent cluster delete The mtcAgent does not track the stopped or started heartbeat state of a host, that is left to the heartbeat service itself in response to the mtcAgent commanding heartbeat start and stop based on current running state. Therefore heartbeat stop command is sometimes called against a host that is already in the stopped state. The heartbeat stop command results in a call in the hbsAgent to delete a host from the heartbeat cluster; hbs_cluster_del. If that host is not already in the cluster then this call can result in a Swerr (Software Error) log. This update removes this success path Swerr log. Change-Id: Idb96a791a932827749e329a123f60006ff7c48ec Closes-Bug: 1931911 Signed-off-by: Eric MacDonald --- mtce/src/heartbeat/hbsCluster.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mtce/src/heartbeat/hbsCluster.cpp b/mtce/src/heartbeat/hbsCluster.cpp index 1f82a4e3..f0a0c444 100644 --- a/mtce/src/heartbeat/hbsCluster.cpp +++ b/mtce/src/heartbeat/hbsCluster.cpp @@ -362,10 +362,6 @@ void hbs_cluster_del ( string & hostname ) hbs_cluster_change ( hostname + " deleted" ); } - else - { - slog("%s not found in cluster list", hostname.c_str()); - } } /****************************************************************************