Merge pull request #1590 from tendermint/1227-msg-bytes

nice output for msgBytes
This commit is contained in:
Ethan Buchman
2018-05-18 19:17:22 -04:00
committed by GitHub

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