mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 19:43:01 +00:00
More logs (#533)
This commit is contained in:
1 parent
d738424173
commit
13083a143f
2 files changed
+14
No files matched your search
@@ -210,6 +210,18 @@ func (r *RTPStats) Update(rtph *rtp.Header, payloadSize int, paddingSize int, pa
|
||||
flowState.LossStartInclusive = r.highestSN + 1
|
||||
flowState.LossEndExclusive = rtph.SequenceNumber
|
||||
}
|
||||
// LK-DEBUG-REMOVE START
|
||||
if diff > 100 {
|
||||
logger.Debugw(
|
||||
"DEBUG huge difference in sequence number",
|
||||
"diff", diff,
|
||||
"highestSN", r.highestSN,
|
||||
"sn", rtph.SequenceNumber,
|
||||
"highestTime", r.highestTime,
|
||||
"now", packetTime,
|
||||
)
|
||||
}
|
||||
// LK-DEBUG-REMOVE END
|
||||
|
||||
// update gap histogram
|
||||
r.updateGapHistogram(int(diff))
|
||||
|
||||
@@ -273,6 +273,8 @@ func (s *StreamTrackerManager) removeAvailableLayer(layer int32) {
|
||||
s.availableLayers = newLayers
|
||||
s.lock.Unlock()
|
||||
|
||||
s.logger.Debugw("available layers changed", "layers", newLayers)
|
||||
|
||||
// need to immediately switch off unavailable layers
|
||||
if s.onAvailableLayersChanged != nil {
|
||||
s.onAvailableLayersChanged(newLayers)
|
||||
|
||||
Reference in new issue
Block a user