From 5b0f171befe4011d4ccbc9e04c82ec2d993ea47f Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Tue, 8 Mar 2022 19:51:57 +0530 Subject: [PATCH] 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 --- pkg/rtc/uptrackmanager.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/rtc/uptrackmanager.go b/pkg/rtc/uptrackmanager.go index bd24b459a..65bfe3aaa 100644 --- a/pkg/rtc/uptrackmanager.go +++ b/pkg/rtc/uptrackmanager.go @@ -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 {