nice output for msgBytes

Closes #1227
This commit is contained in:
Anton Kaliaev
2018-05-18 12:45:09 +04:00
parent 0908e668bd
commit 5a041baa36

View File

@@ -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)
}