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 {
return
}
t.params.Logger.Debugw("removing peerconnection track",
"subscriber", sub.Identity(),
"subscriberID", subscriberID,
sub.GetLogger().Infow("removing peerconnection track",
"publisher", subTrack.PublisherIdentity(),
"publisherID", subTrack.PublisherID(),
"kind", t.params.MediaTrack.Kind(),
)
if err := sub.SubscriberPC().RemoveTrack(sender); err != nil {
@@ -882,10 +882,10 @@ func (t *MediaTrackSubscriptions) downTrackClosed(
if _, ok := err.(*rtcerr.InvalidStateError); !ok {
// most of these are safe to ignore, since the track state might have already
// 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,
"subscriber", sub.Identity(),
"subscriberID", subscriberID,
"publisher", subTrack.PublisherIdentity(),
"publisherID", subTrack.PublisherID(),
)
}
}