X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=p2p%2Fconnection%2Fconnection.go;fp=p2p%2Fconnection%2Fconnection.go;h=46a97ad957f6976aa485561c36c8c31bed82bb5d;hp=852c4f6ee85a205837fa4cb3dbd76ac730b9e85f;hb=465ddc00f27e32ed4f2d2a6db67b7225b98971b1;hpb=b5adb513416f1c03bb6503e208eb21550b5ac4cc 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 }