Some logging changes. (#4168)

* Some logging changes.

Trying to chase a case of large sequence number gap on subscriber side
where packets are sent after a long time.

* return values instead of logging
This commit is contained in:
Raja Subramanian
2025-12-17 18:05:29 +05:30
committed by GitHub
parent 2f2d0a5735
commit 5c841b8ea1
4 changed files with 20 additions and 5 deletions
+2 -2
View File
@@ -255,9 +255,9 @@ func (r *RoomTrackManager) GetDataTrackInfo(trackID livekit.TrackID) *DataTrackI
return infos[0]
}
func (r *RoomTrackManager) Report() {
func (r *RoomTrackManager) Report() (int, int) {
r.lock.RLock()
defer r.lock.RUnlock()
r.logger.Infow("room track manager report", "numTracks", len(r.tracks), "numDataTracks", len(r.dataTracks))
return len(r.tracks), len(r.dataTracks)
}