From 47d4eb020d69fd056f0204b782c08b33993a3a9d Mon Sep 17 00:00:00 2001 From: Jonathan Lennox Date: Mon, 3 Jul 2023 16:07:23 -0400 Subject: [PATCH] Improve trace logs for BandwidthAllocation. --- .../org/jitsi/videobridge/cc/allocation/BandwidthAllocation.kt | 2 +- .../org/jitsi/videobridge/cc/allocation/BandwidthAllocator.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocation.kt b/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocation.kt index 7fe9e1836c..c029bdcfbf 100644 --- a/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocation.kt +++ b/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocation.kt @@ -93,5 +93,5 @@ data class SingleAllocation( fun isForwarded(): Boolean = targetIndex > -1 override fun toString(): String = "[id=$endpointId target=${targetLayer?.height}/${targetLayer?.frameRate} " + - "ideal=${idealLayer?.height}/${idealLayer?.frameRate}" + "ideal=${idealLayer?.height}/${idealLayer?.frameRate}]" } diff --git a/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocator.kt b/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocator.kt index 2e575feeda..b21936f803 100644 --- a/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocator.kt +++ b/jvb/src/main/kotlin/org/jitsi/videobridge/cc/allocation/BandwidthAllocator.kt @@ -202,7 +202,8 @@ internal class BandwidthAllocator( logger.trace { "Finished allocation: allocationChanged=$allocationChanged, " + - "effectiveConstraintsChanged=$effectiveConstraintsChanged" + "effectiveConstraintsChanged=$effectiveConstraintsChanged " + + "allocation=[$allocation]" } if (effectiveConstraintsChanged) { eventEmitter.fireEvent {