From 81580db012cded645f58e66871b2eaa639d7699e Mon Sep 17 00:00:00 2001 From: capossele <angelocapossele@gmail.com> Date: Thu, 18 Jun 2020 17:10:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Change=20log=20to=20debug=20leve?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/analysis/server/plugin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/analysis/server/plugin.go b/plugins/analysis/server/plugin.go index 32556417..12821d33 100644 --- a/plugins/analysis/server/plugin.go +++ b/plugins/analysis/server/plugin.go @@ -86,14 +86,14 @@ func run(_ *node.Plugin) { func HandleConnection(conn *network.ManagedConnection) { err := conn.SetReadTimeout(IdleTimeout) if err != nil { - log.Warnw("Error setting read timeout; closing connection", "err", err) + log.Debugw("Error setting read timeout; closing connection", "err", err) _ = conn.Close() return } onReceiveData := events.NewClosure(func(data []byte) { _, err := prot.Read(data) if err != nil { - log.Warnw("Invalid message received; closing connection", "err", err) + log.Debugw("Invalid message received; closing connection", "err", err) _ = conn.Close() } }) @@ -103,7 +103,7 @@ func HandleConnection(conn *network.ManagedConnection) { buffer := make([]byte, 2048) _, err := conn.Read(buffer) if err != nil && err != io.EOF && !strings.Contains(err.Error(), "use of closed network connection") { - log.Warnw("Read error", "err", err) + log.Debugw("Read error", "err", err) } // always close the connection when we've stopped reading from it _ = conn.Close() -- GitLab