cs: prettify logging of ignored votes (#3086)

Refs #3038
This commit is contained in:
srmo 2019-01-06 10:00:12 +01:00 committed by Anton Kaliaev
parent 04e97f599a
commit 616c3a4bae

View File

@ -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. // Not necessarily a bad peer, but not favourable behaviour.
if vote.Height != cs.Height { if vote.Height != cs.Height {
err = ErrVoteHeightMismatch 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 return
} }