Skip to content

Commit 6e9dca3

Browse files
authored
feat: misc logging improvements for fallback mode (ethereum-optimism#10775)
1 parent 058f398 commit 6e9dca3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

proxyd/consensus_poller.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (ah *PollerAsyncHandler) Init() {
150150

151151
log.Info("number of healthy primary candidates", "healthy_candidates", len(healthyCandidates))
152152
if len(healthyCandidates) == 0 {
153-
log.Info("zero healthy candidates, querying fallback backend",
153+
log.Debug("zero healthy candidates, querying fallback backend",
154154
"backend_name", be.Name)
155155
ah.cp.UpdateBackend(ah.ctx, be)
156156
}
@@ -703,6 +703,11 @@ func (cp *ConsensusPoller) FilterCandidates(backends []*Backend) map[*Backend]*b
703703
continue
704704
}
705705
if !be.skipPeerCountCheck && bs.peerCount < cp.minPeerCount {
706+
log.Debug("backend peer count too low for inclusion in consensus",
707+
"backend_name", be.Name,
708+
"peer_count", bs.peerCount,
709+
"min_peer_count", cp.minPeerCount,
710+
)
706711
continue
707712
}
708713
if !bs.inSync {

0 commit comments

Comments
 (0)