From 4a69bf90ff28141cc1834441f59140b19665451f Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Fri, 11 Apr 2025 11:39:13 +0200 Subject: [PATCH] eth/dropper: fixing logs Signed-off-by: Csaba Kiraly --- eth/dropper.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eth/dropper.go b/eth/dropper.go index 21e473d3f7..840f947951 100644 --- a/eth/dropper.go +++ b/eth/dropper.go @@ -88,8 +88,6 @@ func newDropper(maxDialPeers, maxInboundPeers int) *dropper { if peerDropIntervalMin > peerDropIntervalMax { panic("peerDropIntervalMin duration must be less than or equal to peerDropIntervalMax duration") } - log.Info("New Dropper", "maxDialPeers", cm.maxDialPeers, "threshold", peerDropThreshold, - "intervalMin", peerDropIntervalMin, "intervalMax", peerDropIntervalMax) return cm } @@ -132,7 +130,8 @@ func (cm *dropper) dropRandomPeer() bool { droppable := slices.DeleteFunc(peers, selectDoNotDrop) if len(droppable) > 0 { p := droppable[mrand.Intn(len(droppable))] - log.Debug("Dropping random peer", "id", p.ID(), "duration", common.PrettyDuration(p.Lifetime()), "inbound", p.Inbound(), "peercountbefore", len(peers)) + log.Debug("Dropping random peer", "inbound", p.Inbound(), + "id", p.ID(), "duration", common.PrettyDuration(p.Lifetime()), "peercountbefore", len(peers)) p.Disconnect(p2p.DiscTooManyPeers) if p.Inbound() { droppedInbound.Mark(1)