From e941ad9294beb3fb99af9d4db887a8c1ca0d4bc2 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Wed, 30 Nov 2022 12:56:09 -0500 Subject: [PATCH] p2p: fix logspam (#9756) (#9764) Since starting off as a wee validator, I've been mystified by the volume of p2p logspam, which often makes it impossible to monitor other tasks. Thus, routine p2p events, have been cast into the land of debug. --- #### PR checklist - [x] Tests written/updated, or no tests needed - [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed - [x] Updated relevant documentation (`docs/`) and code comments, or no documentation updates needed Co-authored-by: Jacob Gadikian --- p2p/switch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/switch.go b/p2p/switch.go index 9a298c72a..60d26729b 100644 --- a/p2p/switch.go +++ b/p2p/switch.go @@ -761,7 +761,7 @@ func (sw *Switch) addOutboundPeerWithConfig( addr *NetAddress, cfg *config.P2PConfig, ) error { - sw.Logger.Info("Dialing peer", "address", addr) + sw.Logger.Debug("Dialing peer", "address", addr) // XXX(xla): Remove the leakage of test concerns in implementation. if cfg.TestDialFail { @@ -889,7 +889,7 @@ func (sw *Switch) addPeer(p Peer) error { reactor.AddPeer(p) } - sw.Logger.Info("Added peer", "peer", p) + sw.Logger.Debug("Added peer", "peer", p) return nil }