diff --git a/scripts/cnode-helper-scripts/logMonitor.sh b/scripts/cnode-helper-scripts/logMonitor.sh index dc14256dd..c75214ccd 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