Skip to content

Commit

Permalink
Log outgoing participant ID when sending
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 24, 2023
1 parent 0c5be59 commit 2b1f046
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2b1f046

Please sign in to comment.