From 0448c2b437c7d17fe176d745fe25dae8a16ebc52 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Sun, 12 Nov 2017 06:40:27 +0000 Subject: [PATCH] consensus: fix LastCommit log --- consensus/reactor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index 050fdfa40..026d8e076 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -1056,8 +1056,8 @@ func (ps *PeerState) SetHasVote(vote *types.Vote) { } func (ps *PeerState) setHasVote(height int, round int, type_ byte, index int) { - logger := ps.logger.With("peerRound", ps.Round, "height", height, "round", round) - logger.Debug("setHasVote(LastCommit)", "lastCommit", ps.LastCommit, "index", index) + logger := ps.logger.With("peerH/R", cmn.Fmt("%d/%d", ps.Height, ps.Round), "H/R", cmn.Fmt("%d/%d", height, round)) + logger.Debug("setHasVote", "type", type_, "index", index) // NOTE: some may be nil BitArrays -> no side effects. psVotes := ps.getVoteBitArray(height, round, type_)