Add debug for receiver restart. (#4328)

* Add debug for receiver restart.

Have a suspicion that something is deadlocking between restart receiver
and buffer bind during replay. Adding debug to get a better picture of
state of receiver restart.

* consistent logging
This commit is contained in:
Raja Subramanian
2026-02-20 01:44:59 +05:30
committed by GitHub
parent 74891f30fe
commit 75f9c462be
2 changed files with 33 additions and 5 deletions
+4
View File
@@ -272,6 +272,8 @@ func (b *BufferBase) SetLogger(lgr logger.Logger) {
}
func (b *BufferBase) Bind(rtpParameters webrtc.RTPParameters, codec webrtc.RTPCodecCapability, bitrate int) error {
b.logger.Debugw("binding track")
b.Lock()
defer b.Unlock()
@@ -487,6 +489,8 @@ func (b *BufferBase) stopRTPStats(reason string) (stats *livekit.RTPStats, stats
}
func (b *BufferBase) RestartStream(reason string) {
b.logger.Infow("stream restart", "reason", reason)
b.Lock()
defer b.Unlock()