From a8d3805ddf27d37fd962ba2f8294de82ea4f637e Mon Sep 17 00:00:00 2001 From: crypto-facs <84574577+crypto-facs@users.noreply.github.com> Date: Thu, 16 Jun 2022 11:25:22 +0200 Subject: [PATCH] rpc: add ws log on read loop break (#1127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> --- rpc/websockets.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/websockets.go b/rpc/websockets.go index b3663c57..dd1cc4e0 100644 --- a/rpc/websockets.go +++ b/rpc/websockets.go @@ -181,6 +181,7 @@ func (s *websocketsServer) readLoop(wsConn *wsConn) { _, mb, err := wsConn.ReadMessage() if err != nil { _ = wsConn.Close() + s.logger.Error("read message error, breaking read loop", "error", err.Error()) return }