Skip to content

Commit

Permalink
Improve trace logs for BandwidthAllocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLennox committed Jul 3, 2023
1 parent 03a0a80 commit 47d4eb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ internal class BandwidthAllocator<T : MediaSourceContainer>(

logger.trace {
"Finished allocation: allocationChanged=$allocationChanged, " +
"effectiveConstraintsChanged=$effectiveConstraintsChanged"
"effectiveConstraintsChanged=$effectiveConstraintsChanged " +
"allocation=[$allocation]"
}
if (effectiveConstraintsChanged) {
eventEmitter.fireEvent {
Expand Down

0 comments on commit 47d4eb0

Please sign in to comment.