Skip to content

Commit

Permalink
p2p: fix logspam (tendermint#9756)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
faddat authored Nov 24, 2022
1 parent 4af7568 commit f7bb065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,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 {
Expand Down Expand Up @@ -854,7 +854,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
}

0 comments on commit f7bb065

Please sign in to comment.