From bdb2708a39e7435e379725d78097e7bf3a52a9db Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Wed, 24 Jun 2020 08:40:17 +0200 Subject: [PATCH] log --- protocol/messenger.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/messenger.go b/protocol/messenger.go index 7fd604fbc..ef78d05a2 100644 --- a/protocol/messenger.go +++ b/protocol/messenger.go @@ -1400,6 +1400,8 @@ func (m *Messenger) SendChatMessage(ctx context.Context, message *Message) (*Mes if audioMessage == nil { return nil, errors.New("no audio has been passed") } + m.logger.Info("Audio", zap.Any("audio", audioMessage)) + m.logger.Info("Duration", zap.Uint64("duration", audioMessage.DurationMs)) audioMessage.Payload = payload audioMessage.Type = audio.Type(payload) message.Payload = &protobuf.ChatMessage_Audio{Audio: audioMessage}