From ef6c38cee55c824b67d0244a45aafb7bf9c58c6e Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Tue, 24 Jun 2025 12:51:42 -0700 Subject: [PATCH] Log previous allocation to see changes. (#3759) --- pkg/sfu/forwarder.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/sfu/forwarder.go b/pkg/sfu/forwarder.go index e1eb05d4c..7318bcbaf 100644 --- a/pkg/sfu/forwarder.go +++ b/pkg/sfu/forwarder.go @@ -1524,7 +1524,11 @@ func (f *Forwarder) updateAllocation(alloc VideoAllocation, reason string) Video alloc.PauseReason != f.lastAllocation.PauseReason || alloc.TargetLayer != f.lastAllocation.TargetLayer || alloc.RequestLayerSpatial != f.lastAllocation.RequestLayerSpatial { - f.logger.Debugw(fmt.Sprintf("stream allocation: %s", reason), "allocation", &alloc) + f.logger.Debugw( + fmt.Sprintf("stream allocation: %s", reason), + "allocation", &alloc, + "lastAllocation", &f.lastAllocation, + ) } f.lastAllocation = alloc