Browse Source

blockchain/v1: omit incoming message bytes from log

pull/5819/head
Tess Rinearson 4 years ago
parent
commit
2a4fd3804c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      blockchain/v1/reactor.go

+ 1
- 2
blockchain/v1/reactor.go View File

@ -253,8 +253,7 @@ func (bcR *BlockchainReactor) RemovePeer(peer p2p.Peer, reason interface{}) {
func (bcR *BlockchainReactor) Receive(chID byte, src p2p.Peer, msgBytes []byte) {
msg, err := bc.DecodeMsg(msgBytes)
if err != nil {
bcR.Logger.Error("error decoding message",
"src", src, "chId", chID, "msg", msg, "err", err, "bytes", msgBytes)
bcR.Logger.Error("error decoding message", "src", src, "chId", chID, "err", err)
_ = bcR.swReporter.Report(behaviour.BadMessage(src.ID(), err.Error()))
return
}


Loading…
Cancel
Save