[#1040] Patch go-ethereum reducing from Warn to Info "message loop" logs (#1048)

This commit is contained in:
Adrià Cidre 2018-06-22 11:57:52 +02:00 committed by GitHub
parent bbd7706b11
commit 51ab9053ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,26 @@
diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
index 85849ccc..3b75e53a 100644
--- a/whisper/whisperv5/whisper.go
+++ b/whisper/whisperv5/whisper.go
@@ -499,7 +499,7 @@ func (wh *Whisper) runMessageLoop(p *Peer, rw p2p.MsgReadWriter) error {
// fetch the next packet
packet, err := rw.ReadMsg()
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
}
if packet.Size > wh.MaxMessageSize() {
diff --git a/whisper/whisperv6/whisper.go b/whisper/whisperv6/whisper.go
index 4a7b0065..91d44821 100644
--- a/whisper/whisperv6/whisper.go
+++ b/whisper/whisperv6/whisper.go
@@ -747,7 +747,7 @@ func (whisper *Whisper) runMessageLoop(p *Peer, rw p2p.MsgReadWriter) error {
// fetch the next packet
packet, err := rw.ReadMsg()
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
}
if packet.Size > whisper.MaxMessageSize() {

View File

@ -499,7 +499,7 @@ func (wh *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 > wh.MaxMessageSize() { if packet.Size > wh.MaxMessageSize() {

View File

@ -747,7 +747,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() {