mirror of
https://github.com/livekit/livekit.git
synced 2026-04-01 00:05:40 +00:00
A couple of logging tweaks (#1276)
This commit is contained in:
@@ -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
|
||||
participant.OnTrackPublished(r.onTrackPublished)
|
||||
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(),
|
||||
"participant", p.Identity(),
|
||||
"pID", p.ID(),
|
||||
@@ -408,7 +408,7 @@ func (r *Room) RemoveParticipant(identity livekit.ParticipantIdentity, pID livek
|
||||
p.OnSubscribedTo(nil)
|
||||
|
||||
// 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)
|
||||
|
||||
r.lock.RLock()
|
||||
|
||||
@@ -717,7 +717,7 @@ func (d *DownTrack) CloseWithFlush(flush bool) {
|
||||
d.receiver.DeleteDownTrack(d.subscriberID)
|
||||
|
||||
if d.rtcpReader != nil {
|
||||
logger.Debugw("downtrack close rtcp reader")
|
||||
d.logger.Debugw("downtrack close rtcp reader")
|
||||
d.rtcpReader.Close()
|
||||
d.rtcpReader.OnPacket(nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user