Ensure subscription logging is clear & without sampling (#1440)
This commit is contained in:
@@ -1053,7 +1053,7 @@ func (p *ParticipantImpl) setupUpTrackManager() {
|
|||||||
func (p *ParticipantImpl) setupSubscriptionManager() {
|
func (p *ParticipantImpl) setupSubscriptionManager() {
|
||||||
p.SubscriptionManager = NewSubscriptionManager(SubscriptionManagerParams{
|
p.SubscriptionManager = NewSubscriptionManager(SubscriptionManagerParams{
|
||||||
Participant: p,
|
Participant: p,
|
||||||
Logger: p.params.Logger,
|
Logger: p.params.Logger.WithoutSampler(),
|
||||||
TrackResolver: p.params.TrackResolver,
|
TrackResolver: p.params.TrackResolver,
|
||||||
Telemetry: p.params.Telemetry,
|
Telemetry: p.params.Telemetry,
|
||||||
OnTrackSubscribed: p.onTrackSubscribed,
|
OnTrackSubscribed: p.onTrackSubscribed,
|
||||||
@@ -1677,7 +1677,7 @@ func (p *ParticipantImpl) addMediaTrack(signalCid string, sdpCid string, ti *liv
|
|||||||
|
|
||||||
if !p.IsClosed() {
|
if !p.IsClosed() {
|
||||||
// unpublished events aren't necessary when participant is closed
|
// unpublished events aren't necessary when participant is closed
|
||||||
p.params.Logger.Debugw("unpublished track", "trackID", ti.Sid, "trackInfo", ti)
|
p.params.Logger.Infow("unpublished track", "trackID", ti.Sid, "trackInfo", ti)
|
||||||
p.lock.RLock()
|
p.lock.RLock()
|
||||||
onTrackUnpublished := p.onTrackUnpublished
|
onTrackUnpublished := p.onTrackUnpublished
|
||||||
p.lock.RUnlock()
|
p.lock.RUnlock()
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ func (m *SubscriptionManager) reconcileSubscription(s *trackSubscription) {
|
|||||||
// this is the *only* case we'd change desired state
|
// this is the *only* case we'd change desired state
|
||||||
if s.durationSinceStart() > notFoundTimeout {
|
if s.durationSinceStart() > notFoundTimeout {
|
||||||
s.maybeRecordError(m.params.Telemetry, m.params.Participant.ID(), err, true)
|
s.maybeRecordError(m.params.Telemetry, m.params.Participant.ID(), err, true)
|
||||||
s.logger.Infow("unsubscribing track since track isn't available", "error", err)
|
s.logger.Infow("unsubscribing from track after notFoundTimeout", "error", err)
|
||||||
s.setDesired(false)
|
s.setDesired(false)
|
||||||
m.queueReconcile(s.trackID)
|
m.queueReconcile(s.trackID)
|
||||||
}
|
}
|
||||||
@@ -771,7 +771,7 @@ func (s *trackSubscription) handleSourceTrackRemoved() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// source track removed, we would unsubscribe
|
// source track removed, we would unsubscribe
|
||||||
s.logger.Debugw("unsubscribing track since source track was removed")
|
s.logger.Infow("unsubscribing from track since source track was removed")
|
||||||
s.desired = false
|
s.desired = false
|
||||||
|
|
||||||
s.setChangedNotifierLocked(nil)
|
s.setChangedNotifierLocked(nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user