feat(logging): Replace Timber with Kermit for multiplatform logging (#4083)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-12-28 08:30:15 -06:00 committed by GitHub
parent a927481e4d
commit 0776e029f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
92 changed files with 727 additions and 957 deletions

View file

@ -17,7 +17,7 @@
package com.geeksville.mesh.concurrent
import timber.log.Timber
import co.touchlab.kermit.Logger
/**
* Sometimes when starting services we face situations where messages come in that require computation but we can't do
@ -36,7 +36,7 @@ class DeferredExecution {
// / run all work in the queue and clear it to be ready to accept new work
fun run() {
Timber.d("Running deferred execution numjobs=${queue.size}")
Logger.d { "Running deferred execution numjobs=${queue.size}" }
queue.forEach { it() }
queue.clear()
}

View file

@ -27,7 +27,7 @@ interface Continuation<in T> {
fun resumeWithException(ex: Throwable) = try {
resume(Result.failure(ex))
} catch (ex: Throwable) {
// Timber.e("Ignoring $ex while resuming, because we are the ones who threw it")
// Logger.e { "Ignoring $ex while resuming because we are the ones who threw it" }
throw ex
}
}