whisper: Reduce message loop log from Warn to Info (#17055)

This commit is contained in:
Adrià Cidre 2018-06-26 10:31:05 +02:00 committed by Guillaume Ballet
parent 1f0f6f0272
commit 461291882e
2 changed files with 2 additions and 2 deletions

View File

@ -499,7 +499,7 @@ func (w *Whisper) runMessageLoop(p *Peer, rw p2p.MsgReadWriter) error {
// fetch the next packet // fetch the next packet
packet, err := rw.ReadMsg() packet, err := rw.ReadMsg()
if err != nil { if err != nil {
log.Warn("message loop", "peer", p.peer.ID(), "err", err) log.Info("message loop", "peer", p.peer.ID(), "err", err)
return err return err
} }
if packet.Size > w.MaxMessageSize() { if packet.Size > w.MaxMessageSize() {

View File

@ -650,7 +650,7 @@ func (whisper *Whisper) runMessageLoop(p *Peer, rw p2p.MsgReadWriter) error {
// fetch the next packet // fetch the next packet
packet, err := rw.ReadMsg() packet, err := rw.ReadMsg()
if err != nil { if err != nil {
log.Warn("message loop", "peer", p.peer.ID(), "err", err) log.Info("message loop", "peer", p.peer.ID(), "err", err)
return err return err
} }
if packet.Size > whisper.MaxMessageSize() { if packet.Size > whisper.MaxMessageSize() {