From 4e6b14ac473566a9a7f9d25cd6ee837885d83500 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Tue, 29 Aug 2023 10:57:33 -0700 Subject: [PATCH] change continue to : --- scripts/cnode-helper-scripts/logMonitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/logMonitor.sh b/scripts/cnode-helper-scripts/logMonitor.sh index dc14256dd6..c75214ccde 100755 --- a/scripts/cnode-helper-scripts/logMonitor.sh +++ b/scripts/cnode-helper-scripts/logMonitor.sh @@ -20,7 +20,7 @@ processLogInfo() { if ! at="$(jq -er '.at' <<< ${logentry})"; then echo "ERROR[TraceNodeIsLeader]: invalid json schema, '.at' not found" && :; else at="$(sed 's/\.[0-9]\{2\}Z/+00:00/' <<< ${at})"; fi if ! slot="$(jq -er '.data.val.slot' <<< ${logentry})"; then echo "ERROR[TraceNodeIsLeader]: invalid json schema, '.data.val.slot' not found" && :; fi getNodeMetrics - [[ ${epochnum} -le 0 ]] && echo "ERROR[TraceNodeIsLeader]: failed to grab current epoch number from node metrics" && continue + [[ ${epochnum} -le 0 ]] && echo "ERROR[TraceNodeIsLeader]: failed to grab current epoch number from node metrics" && : echo "LEADER: epoch[${epochnum}] slot[${slot}] at[${at}]" sqlite3 "${BLOCKLOG_DB}" "INSERT OR IGNORE INTO blocklog (slot,at,epoch,status) values (${slot},'${at}',${epochnum},'leader');" fi