From 2a4fd3804ca7624307b6bb3e41ed1e2979238201 Mon Sep 17 00:00:00 2001 From: Tess Rinearson Date: Thu, 3 Dec 2020 23:21:32 +0100 Subject: [PATCH] blockchain/v1: omit incoming message bytes from log --- blockchain/v1/reactor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blockchain/v1/reactor.go b/blockchain/v1/reactor.go index 780e43738..c4c61ec51 100644 --- a/blockchain/v1/reactor.go +++ b/blockchain/v1/reactor.go @@ -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 }