Skip to content

Commit

Permalink
Remove tralinig newlines from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mengelbart committed Nov 15, 2024
1 parent 82bca40 commit 1553b7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/stats/stats_recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,25 +161,25 @@ func (r *recorder) recordOutgoingRTCP(latestStats internalStats, v *outgoingRTCP
switch rtcpPkt := pkt.(type) {
case *rtcp.FullIntraRequest:
if !contains(pkt.DestinationSSRC(), r.ssrc) {
r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt)
r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt)
continue
}
latestStats.InboundRTPStreamStats.FIRCount++
case *rtcp.PictureLossIndication:
if !contains(pkt.DestinationSSRC(), r.ssrc) {
r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt)
r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt)
continue
}
latestStats.InboundRTPStreamStats.PLICount++
case *rtcp.TransportLayerNack:
if !contains(pkt.DestinationSSRC(), r.ssrc) {
r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt)
r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt)
continue
}
latestStats.InboundRTPStreamStats.NACKCount++
case *rtcp.SenderReport:
if !contains(pkt.DestinationSSRC(), r.ssrc) {
r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt)
r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt)
continue
}
latestStats.lastSenderReports = append(latestStats.lastSenderReports, rtcpPkt.NTPTime)
Expand Down Expand Up @@ -276,7 +276,7 @@ func contains(ls []uint32, e uint32) bool {
func (r *recorder) recordIncomingRTCP(latestStats internalStats, v *incomingRTCP) internalStats {
for _, pkt := range v.pkts {
if !contains(pkt.DestinationSSRC(), r.ssrc) {
r.logger.Debugf("skipping incoming RTCP pkt: %v\n", pkt)
r.logger.Debugf("skipping incoming RTCP pkt: %v", pkt)
continue
}
switch pkt := pkt.(type) {
Expand Down

0 comments on commit 1553b7d

Please sign in to comment.