From a04f9f6a6d8eaa4afe0b6b0c5b9e42b29ae612fe Mon Sep 17 00:00:00 2001 From: Jacob Elias Date: Fri, 7 Jun 2024 16:55:55 -0500 Subject: [PATCH] feat: misc logging improvements for fallback mode --- proxyd/consensus_poller.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proxyd/consensus_poller.go b/proxyd/consensus_poller.go index 64ac026a89a4..90af41db7067 100644 --- a/proxyd/consensus_poller.go +++ b/proxyd/consensus_poller.go @@ -150,7 +150,7 @@ func (ah *PollerAsyncHandler) Init() { log.Info("number of healthy primary candidates", "healthy_candidates", len(healthyCandidates)) if len(healthyCandidates) == 0 { - log.Info("zero healthy candidates, querying fallback backend", + log.Debug("zero healthy candidates, querying fallback backend", "backend_name", be.Name) ah.cp.UpdateBackend(ah.ctx, be) } @@ -703,6 +703,11 @@ func (cp *ConsensusPoller) FilterCandidates(backends []*Backend) map[*Backend]*b continue } if !be.skipPeerCountCheck && bs.peerCount < cp.minPeerCount { + log.Debug("backend peer count too low for inclusion in consensus", + "backend_name", be.Name, + "peer_count", bs.peerCount, + "min_peer_count", cp.minPeerCount, + ) continue } if !bs.inSync {