From d83539a5f4bd4407ac14d88fac7d3684a2d88be1 Mon Sep 17 00:00:00 2001 From: simsonraj Date: Wed, 12 Jun 2024 22:23:25 +0530 Subject: [PATCH] extended logging params for more info --- common/client/node_lifecycle.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/client/node_lifecycle.go b/common/client/node_lifecycle.go index 5947774e202..16d77de3a45 100644 --- a/common/client/node_lifecycle.go +++ b/common/client/node_lifecycle.go @@ -189,7 +189,8 @@ func (n *node[CHAIN_ID, HEAD, RPC]) aliveLoop() { _, num, td := n.StateAndLatest() if outOfSync, liveNodes := n.syncStatus(num, td); outOfSync { // note: there must be another live node for us to be out of sync - lggr.Errorw("RPC endpoint has fallen behind", "blockNumber", num, "totalDifficulty", td, "nodeState", n.State()) + _, highest, greatest := n.nLiveNodes() + lggr.Errorw("RPC endpoint has fallen behind", "blockNumber", num, "totalDifficulty", td, "nodeState", n.State(), "highest", highest, "greatest", greatest) if liveNodes < 2 { lggr.Criticalf("RPC endpoint has fallen behind; %s %s", msgCannotDisable, msgDegradedState) continue