Whisper broadcast loop spams way too hard with debug level

This commit is contained in:
Dmitry Shulyak 2018-05-16 13:34:45 +03:00 committed by Dmitry Shulyak
parent 5aae87aba8
commit ca962ddaa3
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()