Skip to content

Commit

Permalink
added a logger to the log subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
valli0x committed Oct 28, 2024
1 parent 6208ee7 commit b2d2014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/websockets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b2d2014

Please sign in to comment.