Use trackID consistently as log key (#491)

* Use trackID consistently as log key

* more useful logging for track published
This commit is contained in:
David Zhao
2022-03-07 21:02:08 -08:00
committed by GitHub
parent 7c0f789316
commit d57f76fbef
7 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -612,12 +612,12 @@ func (r *Room) onTrackPublished(participant types.LocalParticipant, track types.
r.Logger.Debugw("subscribing to new track",
"participants", []livekit.ParticipantIdentity{participant.Identity(), existingParticipant.Identity()},
"pIDs", []livekit.ParticipantID{participant.ID(), existingParticipant.ID()},
"track", track.ID())
"trackID", track.ID())
if _, err := participant.AddSubscriber(existingParticipant, types.AddSubscriberParams{TrackIDs: []livekit.TrackID{track.ID()}}); err != nil {
r.Logger.Errorw("could not subscribe to remoteTrack", err,
"participants", []livekit.ParticipantIdentity{participant.Identity(), existingParticipant.Identity()},
"pIDs", []livekit.ParticipantID{participant.ID(), existingParticipant.ID()},
"track", track.ID())
"trackID", track.ID())
}
}