From 2e02f818690654d955a282d3e5c62472ac52aaec Mon Sep 17 00:00:00 2001 From: Lucas Bubner Date: Sun, 15 Dec 2024 11:21:32 +1030 Subject: [PATCH] Improve binding logs --- .../au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt b/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt index eb71b7f07..db1f46759 100644 --- a/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt +++ b/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt @@ -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)) } /** @@ -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) } /**