From 1553b7d6528eb1ed6018d323c893850cadd7f8a2 Mon Sep 17 00:00:00 2001 From: Mathis Engelbart Date: Fri, 15 Nov 2024 15:25:50 +0100 Subject: [PATCH] Remove tralinig newlines from logs --- pkg/stats/stats_recorder.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/stats/stats_recorder.go b/pkg/stats/stats_recorder.go index a35d062..430019b 100644 --- a/pkg/stats/stats_recorder.go +++ b/pkg/stats/stats_recorder.go @@ -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) @@ -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) {