From be4ea444250d6f48a11a8b5cefcd8b05120285ee Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Mon, 11 Sep 2023 10:29:09 +0530 Subject: [PATCH] Log ClientInfo on participant close. (#2057) Want to check client distribution for negotiation failed induced closes. --- pkg/rtc/participant.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index d84ed7cb5..2f61882b3 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -717,7 +717,13 @@ func (p *ParticipantImpl) Close(sendLeave bool, reason types.ParticipantCloseRea return nil } - p.params.Logger.Infow("participant closing", "sendLeave", sendLeave, "reason", reason.String(), "isExpectedToResume", isExpectedToResume) + p.params.Logger.Infow( + "participant closing", + "sendLeave", sendLeave, + "reason", reason.String(), + "isExpectedToResume", isExpectedToResume, + "clientInfo", p.params.ClientInfo.String(), + ) p.clearDisconnectTimer() p.clearMigrationTimer()