mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 06:54:41 +00:00
p2p: do not format raw msg bytes
While debugging the mempool issue (#5796), I've noticed we're spending quite a bit of time encoding blobs of data, which never get printed! The reason is filtering occurs on the level below, so Go runtime rightfully evaluates function arguments. I think it's okay to not format raw bytes.
This commit is contained in:
@@ -511,7 +511,7 @@ func (c *WSClient) readRoutine() {
|
||||
// c.wg.Wait() in c.Stop(). Note we rely on Quit being closed so that it sends unlimited Quit signals to stop
|
||||
// both readRoutine and writeRoutine
|
||||
|
||||
c.Logger.Info("got response", "id", response.ID, "result", fmt.Sprintf("%X", response.Result))
|
||||
c.Logger.Info("got response", "id", response.ID, "result", response.Result)
|
||||
|
||||
select {
|
||||
case <-c.Quit():
|
||||
|
||||
Reference in New Issue
Block a user