mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 00:02:53 +00:00
Log more about layer offset. (#1959)
Seeing a good chunk of logs using default offset. And it is concentrated heavily on few tracks. Logging more to understand this better before potentially demoting this log.
This commit is contained in:
1 parent
114888e7c7
commit
5c0a4beb61
2 files changed
+11
-3
No files matched your search
@@ -819,9 +819,9 @@ func (r *RTPStats) SetRtcpSenderReportData(srData *RTCPSenderReportData) {
|
||||
if r.srNewest != nil && r.srNewest.NTPTimestamp > srData.NTPTimestamp {
|
||||
r.logger.Infow(
|
||||
"received anachronous sender report",
|
||||
"currentNTP", srData.NTPTimestamp.Time(),
|
||||
"currentNTP", srData.NTPTimestamp.Time().String(),
|
||||
"currentRTP", srData.RTPTimestamp,
|
||||
"lastNTP", r.srNewest.NTPTimestamp.Time(),
|
||||
"lastNTP", r.srNewest.NTPTimestamp.Time().String(),
|
||||
"lastRTP", r.srNewest.RTPTimestamp,
|
||||
)
|
||||
return
|
||||
|
||||
@@ -571,7 +571,15 @@ func (s *StreamTrackerManager) updateLayerOffsetLocked(ref, other int32) {
|
||||
// use minimal offset to indicate value availability in the extremely unlikely case of
|
||||
// both layers using the same timestamp
|
||||
if offset == 0 {
|
||||
s.logger.Infow("using default offset", "ref", ref, "other", other)
|
||||
s.logger.Infow(
|
||||
"using default offset",
|
||||
"ref", ref,
|
||||
"refNTP", srRef.NTPTimestamp.Time().String(),
|
||||
"refRTP", srRef.RTPTimestamp,
|
||||
"other", other,
|
||||
"otherNTP", srOther.NTPTimestamp.Time().String(),
|
||||
"otherRTP", srOther.RTPTimestamp,
|
||||
)
|
||||
offset = 1
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user