Change too many packets log to error to get back trace. (#1744)
This commit is contained in:
@@ -1049,7 +1049,7 @@ func (r *RTPStats) DeltaInfo(snapshotId uint32) *RTPDeltaInfo {
|
|||||||
|
|
||||||
packetsExpected := now.extStartSN - then.extStartSN
|
packetsExpected := now.extStartSN - then.extStartSN
|
||||||
if packetsExpected > NumSequenceNumbers {
|
if packetsExpected > NumSequenceNumbers {
|
||||||
r.logger.Warnw(
|
r.logger.Errorw(
|
||||||
"too many packets expected in delta",
|
"too many packets expected in delta",
|
||||||
fmt.Errorf("start: %d, end: %d, expected: %d", then.extStartSN, now.extStartSN, packetsExpected),
|
fmt.Errorf("start: %d, end: %d, expected: %d", then.extStartSN, now.extStartSN, packetsExpected),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -114,8 +114,8 @@ type DownTrackState struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d DownTrackState) String() string {
|
func (d DownTrackState) String() string {
|
||||||
return fmt.Sprintf("DownTrackState{rtpStats: %s, delta: %d, forwarder: %s}",
|
return fmt.Sprintf("DownTrackState{rtpStats: %s, delta: %d, deltaOverridden: %d, forwarder: %s}",
|
||||||
d.RTPStats.ToString(), d.DeltaStatsSnapshotId, d.ForwarderState.String())
|
d.RTPStats.ToString(), d.DeltaStatsSnapshotId, d.DeltaStatsOverriddenSnapshotId, d.ForwarderState.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user