Skip to content

Commit

Permalink
Improve binding logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bubner committed Dec 15, 2024
1 parent 21fc36d commit 2e02f81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class Scheduler : BunyipsComponent() {
* @throws IndexOutOfBoundsException If the index is out of bounds.
*/
fun unbind(index: Int) {
Dbg.logd(javaClass, "unbound task: %", allocatedTasks.removeAt(index))
Dbg.logd(javaClass, "unbound task %: %", allocatedTasks.size - 1, allocatedTasks.removeAt(index))
}

/**
Expand All @@ -211,7 +211,7 @@ class Scheduler : BunyipsComponent() {
*/
fun unbind(task: ScheduledTask) {
if (allocatedTasks.remove(task))
Dbg.logd(javaClass, "unbound task: %", task)
Dbg.logd(javaClass, "unbound task %: %", allocatedTasks.size, task)
}

/**
Expand Down

0 comments on commit 2e02f81

Please sign in to comment.