diff --git a/rpc/websockets.go b/rpc/websockets.go index 61c0b14b65..dde74e797b 100644 --- a/rpc/websockets.go +++ b/rpc/websockets.go @@ -592,6 +592,7 @@ func (api *pubSubAPI) subscribeLogs(wsConn *wsConn, subID rpc.ID, extra interfac err := wsConn.WriteJSON(res) if err != nil { + api.logger.Error("error writing header, will drop peer", "error", err.Error()) try(func() { if err != websocket.ErrCloseSent { _ = wsConn.Close()