From dac68ea18ee6c5b55e5d300593fdaff18978f147 Mon Sep 17 00:00:00 2001 From: DeKaiju Date: Fri, 22 Nov 2019 12:29:03 +0800 Subject: [PATCH] fix(log): change p2p connection error log level --- p2p/connection/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/connection/connection.go b/p2p/connection/connection.go index 852c4f6e..46a97ad9 100644 --- a/p2p/connection/connection.go +++ b/p2p/connection/connection.go @@ -247,7 +247,7 @@ func (c *MConnection) String() string { func (c *MConnection) flush() { if err := c.bufWriter.Flush(); err != nil { - log.WithFields(log.Fields{"module": logModule, "error": err}).Error("MConnection flush failed") + log.WithFields(log.Fields{"module": logModule, "error": err}).Warn("MConnection flush failed") } } @@ -405,7 +405,7 @@ func (c *MConnection) sendRoutine() { return } if err != nil { - log.WithFields(log.Fields{"module": logModule, "conn": c, "error": err}).Error("Connection failed @ sendRoutine") + log.WithFields(log.Fields{"module": logModule, "conn": c, "error": err}).Warn("Connection failed @ sendRoutine") c.stopForError(err) return } -- 2.11.0