From 89ae0ca054414ba5b93f75e841a42907ddb70f4c Mon Sep 17 00:00:00 2001 From: David Zhao Date: Fri, 18 Feb 2022 17:52:29 -0800 Subject: [PATCH] more logs --- pkg/rtc/participant.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 035be52ad..8512f0418 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -485,8 +485,6 @@ func (p *ParticipantImpl) Close(sendLeave bool) error { return nil } - p.params.Logger.Errorw("closing participant", nil) - // send leave message if sendLeave { _ = p.writeMessage(&livekit.SignalResponse{ @@ -995,6 +993,9 @@ func (p *ParticipantImpl) updateState(state livekit.ParticipantInfo_State) { return } p.state.Store(state) + if state == livekit.ParticipantInfo_DISCONNECTED { + p.params.Logger.Errorw("setting state to disconnected", nil) + } p.params.Logger.Debugw("updating participant state", "state", state.String()) p.lock.RLock() onStateChange := p.onStateChange