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
@@ -17,7 +17,7 @@ require (
github.com/hashicorp/golang-lru/v2 v2.0.3
github.com/jxskiss/base62 v1.1.0
github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1
github.com/livekit/mediatransportutil v0.0.0-20230523035537-27577c4e1646
github.com/livekit/mediatransportutil v0.0.0-20230609061558-44a151ad2e1d
github.com/livekit/protocol v1.5.8-0.20230606012216-d8cc3581090d
github.com/livekit/psrpc v0.3.1
github.com/mackerelio/go-osstat v0.2.4
+2 -2
View File
@@ -120,8 +120,8 @@ github.com/lithammer/shortuuid/v4 v4.0.0 h1:QRbbVkfgNippHOS8PXDkti4NaWeyYfcBTHtw
github.com/lithammer/shortuuid/v4 v4.0.0/go.mod h1:Zs8puNcrvf2rV9rTH51ZLLcj7ZXqQI3lv67aw4KiB1Y=
github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 h1:jm09419p0lqTkDaKb5iXdynYrzB84ErPPO4LbRASk58=
github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1/go.mod h1:Rs3MhFwutWhGwmY1VQsygw28z5bWcnEYmS1OG9OxjOQ=
github.com/livekit/mediatransportutil v0.0.0-20230523035537-27577c4e1646 h1:acGSGkWJdut7TUWozCDheHu4dwWFDqqRzv+SBbIY9Xo=
github.com/livekit/mediatransportutil v0.0.0-20230523035537-27577c4e1646/go.mod h1:MRc0zSOSzXuFt0X218SgabzlaKevkvCckPgBEoHYc34=
github.com/livekit/mediatransportutil v0.0.0-20230609061558-44a151ad2e1d h1:7yjO7MpM8e7FQKQ86XF+5yKgDcFIL4DhT7t6NbL8E3Y=
github.com/livekit/mediatransportutil v0.0.0-20230609061558-44a151ad2e1d/go.mod h1:MRc0zSOSzXuFt0X218SgabzlaKevkvCckPgBEoHYc34=
github.com/livekit/protocol v1.5.8-0.20230606012216-d8cc3581090d h1:hSTJ80uM/suVDp40MyyCofWVUhtOz3qG3LwFD6/LoRU=
github.com/livekit/protocol v1.5.8-0.20230606012216-d8cc3581090d/go.mod h1:CnELWfDW0SvYy9II+YHsv83zz4gToYTbUdDM/7Fjxy4=
github.com/livekit/psrpc v0.3.1 h1:KfylgJHvoLQcc22t/oflwMOeSnx0c14G7cWsS+9MYS4=
+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,