A couple of logging tweaks (#1276)
This commit is contained in:
+2
-2
@@ -245,7 +245,7 @@ func (r *Room) Join(participant types.LocalParticipant, opts *ParticipantOptions
|
|||||||
// it's important to set this before connection, we don't want to miss out on any publishedTracks
|
// it's important to set this before connection, we don't want to miss out on any publishedTracks
|
||||||
participant.OnTrackPublished(r.onTrackPublished)
|
participant.OnTrackPublished(r.onTrackPublished)
|
||||||
participant.OnStateChange(func(p types.LocalParticipant, oldState livekit.ParticipantInfo_State) {
|
participant.OnStateChange(func(p types.LocalParticipant, oldState livekit.ParticipantInfo_State) {
|
||||||
r.Logger.Debugw("participant state changed",
|
r.Logger.Infow("participant state changed",
|
||||||
"state", p.State(),
|
"state", p.State(),
|
||||||
"participant", p.Identity(),
|
"participant", p.Identity(),
|
||||||
"pID", p.ID(),
|
"pID", p.ID(),
|
||||||
@@ -408,7 +408,7 @@ func (r *Room) RemoveParticipant(identity livekit.ParticipantIdentity, pID livek
|
|||||||
p.OnSubscribedTo(nil)
|
p.OnSubscribedTo(nil)
|
||||||
|
|
||||||
// close participant as well
|
// close participant as well
|
||||||
r.Logger.Infow("closing participant for removal", "pID", p.ID(), "participant", p.Identity())
|
r.Logger.Debugw("closing participant for removal", "pID", p.ID(), "participant", p.Identity())
|
||||||
_ = p.Close(true, reason)
|
_ = p.Close(true, reason)
|
||||||
|
|
||||||
r.lock.RLock()
|
r.lock.RLock()
|
||||||
|
|||||||
@@ -717,7 +717,7 @@ func (d *DownTrack) CloseWithFlush(flush bool) {
|
|||||||
d.receiver.DeleteDownTrack(d.subscriberID)
|
d.receiver.DeleteDownTrack(d.subscriberID)
|
||||||
|
|
||||||
if d.rtcpReader != nil {
|
if d.rtcpReader != nil {
|
||||||
logger.Debugw("downtrack close rtcp reader")
|
d.logger.Debugw("downtrack close rtcp reader")
|
||||||
d.rtcpReader.Close()
|
d.rtcpReader.Close()
|
||||||
d.rtcpReader.OnPacket(nil)
|
d.rtcpReader.OnPacket(nil)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user