From 2b1f046e75ac805f3a185d10054d1fce729b9b07 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 24 Aug 2023 14:56:41 +0300 Subject: [PATCH] Log outgoing participant ID when sending --- portal.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 8bb8410..0bb0fd1 100644 --- a/portal.go +++ b/portal.go @@ -1710,7 +1710,10 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *event.Event, timing go ms.sendMessageMetrics(evt, err, "Error converting", true) return } - log.Debug().Str("tmp_id", req.TmpID).Msg("Sending Matrix message to Google Messages") + log.Debug(). + Str("tmp_id", req.TmpID). + Str("participant_id", req.GetMessagePayload().GetParticipantID()). + Msg("Sending Matrix message to Google Messages") start = time.Now() _, err = sender.Client.SendMessage(req) timings.send = time.Since(start)