Log previous allocation to see changes. (#3759)

This commit is contained in:
Raja Subramanian
2025-06-24 12:51:42 -07:00
committed by GitHub
parent 01bf96855d
commit ef6c38cee5
+5 -1
View File
@@ -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