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:
Anton Kaliaev
2020-12-17 15:59:18 +04:00
parent 2bb2af19e4
commit 085fd66f33
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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():