From b2d201476681604af5ba1309997db9f117c1c9d5 Mon Sep 17 00:00:00 2001 From: valli0x Date: Mon, 28 Oct 2024 18:42:24 +0300 Subject: [PATCH] added a logger to the log subscription --- rpc/websockets.go | 1 + 1 file changed, 1 insertion(+) 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()