mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
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:
parent
a927481e4d
commit
0776e029f3
92 changed files with 727 additions and 957 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue