• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版dac68ea18ee6c5b55e5d300593fdaff18978f147 (tree)
时间2019-11-22 13:29:03
作者DeKaiju <longjinglv@gmai...>
CommiterDeKaiju

Log Message

fix(log): change p2p connection error log level

更改概述

差异

--- a/p2p/connection/connection.go
+++ b/p2p/connection/connection.go
@@ -247,7 +247,7 @@ func (c *MConnection) String() string {
247247
248248 func (c *MConnection) flush() {
249249 if err := c.bufWriter.Flush(); err != nil {
250- log.WithFields(log.Fields{"module": logModule, "error": err}).Error("MConnection flush failed")
250+ log.WithFields(log.Fields{"module": logModule, "error": err}).Warn("MConnection flush failed")
251251 }
252252 }
253253
@@ -405,7 +405,7 @@ func (c *MConnection) sendRoutine() {
405405 return
406406 }
407407 if err != nil {
408- log.WithFields(log.Fields{"module": logModule, "conn": c, "error": err}).Error("Connection failed @ sendRoutine")
408+ log.WithFields(log.Fields{"module": logModule, "conn": c, "error": err}).Warn("Connection failed @ sendRoutine")
409409 c.stopForError(err)
410410 return
411411 }
Show on old repository browser