From ca962ddaa3db419e52d57255df7c392df88119f3 Mon Sep 17 00:00:00 2001 From: Dmitry Shulyak Date: Wed, 16 May 2018 13:34:45 +0300 Subject: [PATCH] Whisper broadcast loop spams way too hard with debug level --- _assets/patches/geth/0028-p2p-watchdog.patch | 2 +- .../github.com/ethereum/go-ethereum/whisper/whisperv6/peer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_assets/patches/geth/0028-p2p-watchdog.patch b/_assets/patches/geth/0028-p2p-watchdog.patch index d00982864..080dcf9e3 100644 --- a/_assets/patches/geth/0028-p2p-watchdog.patch +++ b/_assets/patches/geth/0028-p2p-watchdog.patch @@ -111,7 +111,7 @@ index 427127290..c30e92d1c 100644 // ones over the network. func (peer *Peer) broadcast() error { + if peer.peer.IsFlaky() { -+ log.Debug("Waiting for a peer to restore communication", "ID", peer.peer.ID()) ++ log.Trace("Waiting for a peer to restore communication", "ID", peer.peer.ID()) + return nil + } envelopes := peer.host.Envelopes() diff --git a/vendor/github.com/ethereum/go-ethereum/whisper/whisperv6/peer.go b/vendor/github.com/ethereum/go-ethereum/whisper/whisperv6/peer.go index c30e92d1c..0433dc932 100644 --- a/vendor/github.com/ethereum/go-ethereum/whisper/whisperv6/peer.go +++ b/vendor/github.com/ethereum/go-ethereum/whisper/whisperv6/peer.go @@ -188,7 +188,7 @@ func (peer *Peer) expire() { // ones over the network. func (peer *Peer) broadcast() error { if peer.peer.IsFlaky() { - log.Debug("Waiting for a peer to restore communication", "ID", peer.peer.ID()) + log.Trace("Waiting for a peer to restore communication", "ID", peer.peer.ID()) return nil } envelopes := peer.host.Envelopes()