Skip to content

Commit

Permalink
Merge pull request #21 from osmosis-labs/adam/downstream-websocket-lo…
Browse files Browse the repository at this point in the history
…g-noise

fix(rpc): Make websocket's log on success be in Debug, not info (cometbft#2788)
  • Loading branch information
czarcas7ic authored and PaddyMc committed Aug 19, 2024
1 parent e1b4453 commit 58c0aef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move the websockets info log for successful replies to debug.
2 changes: 1 addition & 1 deletion rpc/jsonrpc/server/ws_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (wsc *wsConnection) readRoutine() {
returns := rpcFunc.f.Call(args)

// TODO: Need to encode args/returns to string if we want to log them
wsc.Logger.Info("WSJSONRPC", "method", request.Method)
wsc.Logger.Debug("WSJSONRPC", "method", request.Method)

result, err := unreflectResult(returns)
if err != nil {
Expand Down

0 comments on commit 58c0aef

Please sign in to comment.