From a5cf17cf4b413b2a4638f5e2a40212897a015fc2 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Tue, 17 Dec 2019 21:51:01 +0100 Subject: [PATCH] Improve logging format in `messageProcessor.handleMessages` --- protocol/message_processor.go | 2 +- .../status-im/status-go/protocol/message_processor.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/message_processor.go b/protocol/message_processor.go index 051708fef..3fc7e8a6c 100644 --- a/protocol/message_processor.go +++ b/protocol/message_processor.go @@ -240,7 +240,7 @@ func (p *messageProcessor) processPairMessage(m v1protocol.PairMessage) error { // It returns an error only if the processing of required steps failed. func (p *messageProcessor) handleMessages(shhMessage *types.Message, applicationLayer bool) ([]*v1protocol.StatusMessage, error) { logger := p.logger.With(zap.String("site", "handleMessages")) - hlogger := logger.With(zap.Binary("hash", shhMessage.Hash)) + hlogger := logger.With(zap.ByteString("hash", shhMessage.Hash)) var statusMessage v1protocol.StatusMessage err := statusMessage.HandleTransport(shhMessage) diff --git a/vendor/github.com/status-im/status-go/protocol/message_processor.go b/vendor/github.com/status-im/status-go/protocol/message_processor.go index 051708fef..3fc7e8a6c 100644 --- a/vendor/github.com/status-im/status-go/protocol/message_processor.go +++ b/vendor/github.com/status-im/status-go/protocol/message_processor.go @@ -240,7 +240,7 @@ func (p *messageProcessor) processPairMessage(m v1protocol.PairMessage) error { // It returns an error only if the processing of required steps failed. func (p *messageProcessor) handleMessages(shhMessage *types.Message, applicationLayer bool) ([]*v1protocol.StatusMessage, error) { logger := p.logger.With(zap.String("site", "handleMessages")) - hlogger := logger.With(zap.Binary("hash", shhMessage.Hash)) + hlogger := logger.With(zap.ByteString("hash", shhMessage.Hash)) var statusMessage v1protocol.StatusMessage err := statusMessage.HandleTransport(shhMessage)