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:
@@ -104,10 +104,14 @@ func (u *UpTrackManager) AddSubscriber(sub types.LocalParticipant, params types.
|
|||||||
return 0, nil
|
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",
|
u.params.Logger.Debugw("subscribing new participant to tracks",
|
||||||
"subscriber", sub.Identity(),
|
"subscriber", sub.Identity(),
|
||||||
"subscriberID", sub.ID(),
|
"subscriberID", sub.ID(),
|
||||||
"numTracks", len(tracks))
|
"trackIDs", trackIDs)
|
||||||
|
|
||||||
n := 0
|
n := 0
|
||||||
for _, track := range tracks {
|
for _, track := range tracks {
|
||||||
|
|||||||
Reference in New Issue
Block a user