From ada4269d9f74935a8a93ebf51873680dd796c9b5 Mon Sep 17 00:00:00 2001 From: Yohan Totting Date: Fri, 9 Aug 2024 22:44:26 +0700 Subject: [PATCH] fix noisy error on audio red encoding --- clienttrackred.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clienttrackred.go b/clienttrackred.go index b2cec0c..a8b39a5 100644 --- a/clienttrackred.go +++ b/clienttrackred.go @@ -50,21 +50,21 @@ func (t *clientTrackRed) push(p *rtp.Packet, _ QualityLevel) { primaryPacket.Payload = t.getPrimaryEncoding(p.Payload[:len(p.Payload)]) primaryPacket.Header = p.Header if err := t.localTrack.WriteRTP(primaryPacket); err != nil { - t.client.log.Errorf("clienttrack: error on write primary rtp", err) + t.client.log.Tracef("clienttrack: error on write primary rtp %s", err.Error()) } t.remoteTrack.rtppool.PutPacket(primaryPacket) return } if err := t.localTrack.WriteRTP(p); err != nil { - t.client.log.Errorf("clienttrack: error on write rtp", err) + t.client.log.Errorf("clienttrack: error on write rtp %s", err.Error()) } } func (t *clientTrackRed) getPrimaryEncoding(payload []byte) []byte { primaryPayload, err := extractPrimaryEncodingForRED(payload) if err != nil { - t.client.log.Errorf("clienttrack: error on extract primary encoding for red", err) + t.client.log.Tracef("clienttrack: error on extract primary encoding for red %s", err.Error()) return payload }