rpc: add ws log on read loop break (#1127)

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
crypto-facs 2022-06-16 11:25:22 +02:00 committed by GitHub
parent 20f9b04006
commit a8d3805ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}