Skip to content

Commit

Permalink
chore: improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Feb 2, 2024
1 parent 3bba22f commit 11791dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/consensus/vote_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func (s *voteSigner) signAddVote(
}
// If the node not in the validator set, do nothing.
if !stateData.Validators.HasProTxHash(s.privValidator.ProTxHash) {
s.logger.Error("do nothing, node is not a part of validator set")
s.logger.Error("do nothing, node %s is not a part of validator set %+v",
s.privValidator.ProTxHash.ShortString(), stateData.Validators)
return nil
}
keyVals := []any{"height", stateData.Height, "round", stateData.Round, "quorum_hash", stateData.Validators.QuorumHash}
Expand Down

0 comments on commit 11791dc

Please sign in to comment.