Cleanup pass through logging (#1073)

* added filtering for noisy pion logs
* demoted some logs to debug
* using consistent trackID / participant / publisher / subscriber terminology
* removed ice candidate log lines, deferring to combined log
This commit is contained in:
David Zhao
2022-10-06 23:48:37 -07:00
committed by GitHub
parent 792349cc56
commit 1019faa0e6
16 changed files with 114 additions and 55 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ func (f *Forwarder) Mute(muted bool) (bool, VideoLayers) {
return false, f.maxLayers
}
f.logger.Infow("setting mute", "muted", muted)
f.logger.Infow("setting forwarder mute", "muted", muted)
f.muted = muted
// resync when muted so that sequence numbers do not jump on unmute
+1 -1
View File
@@ -352,7 +352,7 @@ func (w *WebRTCReceiver) AddDownTrack(track TrackSender) error {
}
if w.downTrackSpreader.HasDownTrack(track.SubscriberID()) {
w.logger.Infow("subscriberID already exists, replace the downtrack", "subscriberID", track.SubscriberID())
w.logger.Infow("subscriberID already exists, replacing downtrack", "subscriberID", track.SubscriberID())
}
if w.Kind() == webrtc.RTPCodecTypeVideo {
+1 -1
View File
@@ -69,7 +69,7 @@ func (r *RedPrimaryReceiver) AddDownTrack(track TrackSender) error {
}
if r.downTrackSpreader.HasDownTrack(track.SubscriberID()) {
r.logger.Infow("subscriberID already exists, replace the downtrack", "subscriberID", track.SubscriberID())
r.logger.Infow("subscriberID already exists, replacing downtrack", "subscriberID", track.SubscriberID())
}
r.downTrackSpreader.Store(track)