Add logging for permissions debugging (#799)

* Add logging for permissions debugging

* Remove debug
This commit is contained in:
Raja Subramanian
2022-07-02 14:10:24 +05:30
committed by GitHub
parent e7033a23c0
commit 5a30f6ed87
+6 -6
View File
@@ -869,9 +869,9 @@ func (t *MediaTrackSubscriptions) downTrackClosed(
if sender == nil { if sender == nil {
return return
} }
t.params.Logger.Debugw("removing peerconnection track", sub.GetLogger().Infow("removing peerconnection track",
"subscriber", sub.Identity(), "publisher", subTrack.PublisherIdentity(),
"subscriberID", subscriberID, "publisherID", subTrack.PublisherID(),
"kind", t.params.MediaTrack.Kind(), "kind", t.params.MediaTrack.Kind(),
) )
if err := sub.SubscriberPC().RemoveTrack(sender); err != nil { if err := sub.SubscriberPC().RemoveTrack(sender); err != nil {
@@ -882,10 +882,10 @@ func (t *MediaTrackSubscriptions) downTrackClosed(
if _, ok := err.(*rtcerr.InvalidStateError); !ok { if _, ok := err.(*rtcerr.InvalidStateError); !ok {
// most of these are safe to ignore, since the track state might have already // most of these are safe to ignore, since the track state might have already
// been set to Inactive // been set to Inactive
t.params.Logger.Debugw("could not remove remoteTrack from forwarder", sub.GetLogger().Infow("could not remove remoteTrack from forwarder",
"error", err, "error", err,
"subscriber", sub.Identity(), "publisher", subTrack.PublisherIdentity(),
"subscriberID", subscriberID, "publisherID", subTrack.PublisherID(),
) )
} }
} }