From 5a041baa36848fa89cc37d836965a3f987f562eb Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 18 May 2018 12:45:09 +0400 Subject: [PATCH] nice output for msgBytes Closes #1227 --- p2p/conn/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/conn/connection.go b/p2p/conn/connection.go index 6684941ab..6e08c67f9 100644 --- a/p2p/conn/connection.go +++ b/p2p/conn/connection.go @@ -523,7 +523,7 @@ FOR_LOOP: break FOR_LOOP } if msgBytes != nil { - c.Logger.Debug("Received bytes", "chID", pkt.ChannelID, "msgBytes", msgBytes) + c.Logger.Debug("Received bytes", "chID", pkt.ChannelID, "msgBytes", fmt.Sprintf("%X", msgBytes)) // NOTE: This means the reactor.Receive runs in the same thread as the p2p recv routine c.onReceive(pkt.ChannelID, msgBytes) }