From e441cb1414a2704928ee754657ea105f39e79acc Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 31 Jan 2020 14:49:15 +0300 Subject: [PATCH] consensus: add preparation hash to logger --- pkg/consensus/consensus.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/consensus/consensus.go b/pkg/consensus/consensus.go index d63b100f5..91dc47287 100644 --- a/pkg/consensus/consensus.go +++ b/pkg/consensus/consensus.go @@ -181,7 +181,8 @@ func (s *service) eventLoop() { zap.Int("#preparation", len(rec.preparationPayloads)), zap.Int("#commit", len(rec.commitPayloads)), zap.Int("#changeview", len(rec.changeViewPayloads)), - zap.Bool("#request", rec.prepareRequest != nil)) + zap.Bool("#request", rec.prepareRequest != nil), + zap.Bool("#hash", rec.preparationHash != nil)) } s.log.Debug("received message", fields...)