Logging a few bits at Infow (#2126)

Seeing sequencer errors with egress (related to dummy start).
So, logging a few bits at Infow to understand them better.
This commit is contained in:
Raja Subramanian
2023-10-05 11:16:31 +05:30
committed by GitHub
parent c710ab901e
commit 6c49d1a160
5 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ func (r *RTPStatsSender) Update(
r.senderSnapshots[i] = r.initSenderSnapshot(r.startTime, r.extStartSN)
}
r.logger.Debugw(
r.logger.Infow(
"rtp sender stream start",
"startTime", r.startTime.String(),
"firstTime", r.firstTime.String(),
+1 -1
View File
@@ -1769,7 +1769,7 @@ func (f *Forwarder) maybeStart() {
f.rtpMunger.SetLastSnTs(extPkt)
f.extFirstTS = uint64(timestamp)
f.logger.Debugw(
f.logger.Infow(
"starting with dummy forwarding",
"sequenceNumber", extPkt.Packet.SequenceNumber,
"timestamp", extPkt.Packet.Timestamp,
+5 -1
View File
@@ -202,7 +202,11 @@ func (s *sequencer) pushPadding(extStartSNInclusive uint64, extEndSNInclusive ui
// Not recording exclusion range means a few slots (of the size of exclusion range)
// are wasted in this cycle. That should be fine as the exclusion ranges should be
// a few packets at a time.
s.logger.Warnw("cannot exclude old range", nil, "extHighestSN", s.extHighestSN, "startSN", extStartSNInclusive, "endSN", extEndSNInclusive)
if extEndSNInclusive >= s.extHighestSN {
s.logger.Errorw("cannot exclude overlapping range", nil, "extHighestSN", s.extHighestSN, "startSN", extStartSNInclusive, "endSN", extEndSNInclusive)
} else {
s.logger.Warnw("cannot exclude old range", nil, "extHighestSN", s.extHighestSN, "startSN", extStartSNInclusive, "endSN", extEndSNInclusive)
}
// if exclusion range is before what has already been sequenced, invalidate exclusion range slots
for sn := extStartSNInclusive; sn != extEndSNInclusive+1; sn++ {