consensus: add preparation hash to logger

This commit is contained in:
Evgenii Stratonikov 2020-01-31 14:49:15 +03:00 committed by Roman Khimov
parent 42dfb52e98
commit e441cb1414

View file

@ -181,7 +181,8 @@ func (s *service) eventLoop() {
zap.Int("#preparation", len(rec.preparationPayloads)), zap.Int("#preparation", len(rec.preparationPayloads)),
zap.Int("#commit", len(rec.commitPayloads)), zap.Int("#commit", len(rec.commitPayloads)),
zap.Int("#changeview", len(rec.changeViewPayloads)), 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...) s.log.Debug("received message", fields...)