Log actual track IDs during subscription, not just the number of tracks (#493)

* Log actual track IDs instead of just number of tracks

* Log track ids
This commit is contained in:
Raja Subramanian
2022-03-08 19:51:57 +05:30
committed by GitHub
parent 128199e634
commit 5b0f171bef

View File

@@ -104,10 +104,14 @@ func (u *UpTrackManager) AddSubscriber(sub types.LocalParticipant, params types.
return 0, nil
}
var trackIDs []livekit.TrackID
for _, track := range tracks {
trackIDs = append(trackIDs, track.ID())
}
u.params.Logger.Debugw("subscribing new participant to tracks",
"subscriber", sub.Identity(),
"subscriberID", sub.ID(),
"numTracks", len(tracks))
"trackIDs", trackIDs)
n := 0
for _, track := range tracks {