Log track update (#3073)

* Log track update

* trackID for pending
This commit is contained in:
Raja Subramanian
2024-10-08 12:26:36 +05:30
committed by GitHub
parent 2faebb6b47
commit 7c26d4a75a
2 changed files with 4 additions and 0 deletions

View File

@@ -683,6 +683,7 @@ func (t *MediaTrackReceiver) UpdateAudioTrack(update *livekit.UpdateLocalAudioTr
t.updateTrackInfoOfReceivers()
t.params.Telemetry.TrackPublishedUpdate(context.Background(), t.PublisherID(), clonedInfo)
t.params.Logger.Debugw("updated audio track", "trackInfo", logger.Proto(trackInfo))
}
func (t *MediaTrackReceiver) UpdateVideoTrack(update *livekit.UpdateLocalVideoTrack) {
@@ -706,6 +707,7 @@ func (t *MediaTrackReceiver) UpdateVideoTrack(update *livekit.UpdateLocalVideoTr
t.updateTrackInfoOfReceivers()
t.params.Telemetry.TrackPublishedUpdate(context.Background(), t.PublisherID(), clonedInfo)
t.params.Logger.Debugw("updated video track", "trackInfo", logger.Proto(trackInfo))
}
func (t *MediaTrackReceiver) TrackInfo() *livekit.TrackInfo {

View File

@@ -2838,6 +2838,8 @@ func (p *ParticipantImpl) UpdateAudioTrack(update *livekit.UpdateLocalAudioTrack
ti.DisableDtx = true
}
}
p.pubLogger.Debugw("updated pending track", "trackID", ti.Sid, "trackInfo", logger.Proto(ti))
}
}
}