Skip to content

Commit

Permalink
extended logging params for more info
Browse files Browse the repository at this point in the history
  • Loading branch information
simsonraj committed Jun 12, 2024
1 parent 43a1808 commit d83539a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/client/node_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d83539a

Please sign in to comment.