Cleaning up logs added for debugging (#2497)

This commit is contained in:
Raja Subramanian
2024-02-21 20:21:59 +05:30
committed by GitHub
parent 0088eef3c1
commit bd7950f56c
4 changed files with 1 additions and 29 deletions

View File

@@ -257,11 +257,9 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
sfu.WithStreamTrackers(),
)
newWR.OnCloseHandler(func() {
t.params.Logger.Infow("webrtc receiver closed")
t.MediaTrackReceiver.SetClosing()
t.MediaTrackReceiver.ClearReceiver(mime, false)
if t.MediaTrackReceiver.TryClose() {
t.params.Logger.Infow("mediaTrack closed")
if t.dynacastManager != nil {
t.dynacastManager.Close()
}

View File

@@ -2104,7 +2104,7 @@ func (p *ParticipantImpl) addMediaTrack(signalCid string, sdpCid string, ti *liv
p.dirty.Store(true)
p.pubLogger.Infow("track unpublished", "trackID", ti.Sid, "track", logger.Proto(ti))
p.pubLogger.Debugw("track unpublished", "trackID", ti.Sid, "track", logger.Proto(ti))
if onTrackUnpublished := p.getOnTrackUnpublished(); onTrackUnpublished != nil {
onTrackUnpublished(p, mt)
}

View File

@@ -1627,18 +1627,6 @@ func (d *DownTrack) retransmitPackets(nacks []uint16) {
if err == io.EOF {
break
}
// TODO-VP9-DEBUG-REMOVE-START
d.params.Logger.Debugw(
"NACK miss",
"isn", epm.sourceSeqNo,
"osn", epm.targetSeqNo,
"ots", epm.timestamp,
"eosn", epm.extSequenceNumber,
"eots", epm.extTimestamp,
"sid", epm.layer,
"error", err,
)
// TODO-VP9-DEBUG-REMOVE-END
nackMisses++
continue
}

View File

@@ -1704,20 +1704,6 @@ func (f *Forwarder) getTranslationParamsVideo(extPkt *buffer.ExtPacket, layer in
if tpRTP, err := f.rtpMunger.UpdateAndGetSnTs(extPkt, result.RTPMarker); err == nil {
if tpRTP.snOrdering == SequenceNumberOrderingContiguous {
f.rtpMunger.PacketDropped(extPkt)
} else {
// TODO-VP9-DEBUG-REMOVE-START
f.logger.Debugw(
"dropping packet skipped as not contiguous",
"isn", extPkt.ExtSequenceNumber,
"its", extPkt.ExtTimestamp,
"osn", tpRTP.extSequenceNumber,
"ots", tpRTP.extTimestamp,
"payloadLen", len(extPkt.Packet.Payload),
"sid", extPkt.Spatial,
"tid", extPkt.Temporal,
"snOrdering", tpRTP.snOrdering,
)
// TODO-VP9-DEBUG-REMOVE-END
}
}
}