From 616c3a4baeb1f52589f6afe09bc2be256b9626d2 Mon Sep 17 00:00:00 2001 From: srmo Date: Sun, 6 Jan 2019 10:00:12 +0100 Subject: [PATCH] cs: prettify logging of ignored votes (#3086) Refs #3038 --- consensus/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/state.go b/consensus/state.go index 1693e36b5..c6f73d352 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -1529,7 +1529,7 @@ func (cs *ConsensusState) addVote(vote *types.Vote, peerID p2p.ID) (added bool, // Not necessarily a bad peer, but not favourable behaviour. if vote.Height != cs.Height { err = ErrVoteHeightMismatch - cs.Logger.Info("Vote ignored and not added", "voteHeight", vote.Height, "csHeight", cs.Height, "err", err) + cs.Logger.Info("Vote ignored and not added", "voteHeight", vote.Height, "csHeight", cs.Height, "peerID", peerID) return }