Log outgoing participant ID when sending

This commit is contained in:
Tulir Asokan 2023-08-24 14:56:41 +03:00
parent 0c5be59fad
commit 2b1f046e75

View file

@ -1710,7 +1710,10 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *event.Event, timing
go ms.sendMessageMetrics(evt, err, "Error converting", true) go ms.sendMessageMetrics(evt, err, "Error converting", true)
return 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() start = time.Now()
_, err = sender.Client.SendMessage(req) _, err = sender.Client.SendMessage(req)
timings.send = time.Since(start) timings.send = time.Since(start)