Log head SN when packet cannot be fetched (#1780)

This commit is contained in:
Raja Subramanian
2023-06-09 12:13:06 +05:30
committed by GitHub
parent 8235310a92
commit f518f5d743
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -440,7 +440,7 @@ func (b *Buffer) calc(pkt []byte, arrivalTime time.Time) {
func (b *Buffer) patchExtPacket(ep *ExtPacket, buf []byte) *ExtPacket {
n, err := b.getPacket(buf, ep.Packet.SequenceNumber)
if err != nil {
b.logger.Warnw("could not get packet", err, "sn", ep.Packet.SequenceNumber)
b.logger.Warnw("could not get packet", err, "sn", ep.Packet.SequenceNumber, "headSN", b.bucket.HeadSequenceNumber())
return nil
}
ep.RawPacket = buf[:n]
+1 -1
View File
@@ -1493,7 +1493,7 @@ func (r *RTPStats) getIntervalStats(startInclusive uint16, endExclusive uint16)
}
if packetsNotFound != 0 {
r.logger.Warnw(
r.logger.Errorw(
"could not find some packets", nil,
"start", startInclusive,
"end", endExclusive,