From 5b210a238e98adb87e7777727bad439108162ca8 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 13 May 2024 17:26:54 +0200 Subject: [PATCH] Revert "Fixed logging" This reverts commit 3d367c429fb797409939edd0e096927cc4a8850b. --- app/src/main/java/androidx/room/RoomTrackingLiveData.kt | 4 ++-- patches/roomkt.patch | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/androidx/room/RoomTrackingLiveData.kt b/app/src/main/java/androidx/room/RoomTrackingLiveData.kt index 4323c841fe..85c14c1a93 100644 --- a/app/src/main/java/androidx/room/RoomTrackingLiveData.kt +++ b/app/src/main/java/androidx/room/RoomTrackingLiveData.kt @@ -60,7 +60,7 @@ internal class RoomTrackingLiveData ( synchronized(lock) { queued.value-- if (queued.value < 0) { - eu.faircode.email.Log.e("$computeFunction queued=" + queued.value) + eu.faircode.email.Log.e("$computeFunction queued=$queued.value") queued.value = 0 } } @@ -100,7 +100,7 @@ internal class RoomTrackingLiveData ( if (isActive) { synchronized(lock) { if (queued.value > 0) { - eu.faircode.email.Log.persist(eu.faircode.email.EntityLog.Type.Debug, "$computeFunction queued=" + queued.value) + eu.faircode.email.Log.persist(eu.faircode.email.EntityLog.Type.Debug, "$computeFunction queued=$queued.value") } else { queued.value++ queryExecutor.execute(refreshRunnable) diff --git a/patches/roomkt.patch b/patches/roomkt.patch index b2a4ad565d..bffa30ec1a 100644 --- a/patches/roomkt.patch +++ b/patches/roomkt.patch @@ -73,7 +73,7 @@ index 171b57d16e..85c14c1a93 100644 + synchronized(lock) { + queued.value-- + if (queued.value < 0) { -+ eu.faircode.email.Log.e("$computeFunction queued=" + queued.value) ++ eu.faircode.email.Log.e("$computeFunction queued=$queued.value") + queued.value = 0 + } + } @@ -120,7 +120,7 @@ index 171b57d16e..85c14c1a93 100644 + if (isActive) { + synchronized(lock) { + if (queued.value > 0) { -+ eu.faircode.email.Log.persist(eu.faircode.email.EntityLog.Type.Debug, "$computeFunction queued=" + queued.value) ++ eu.faircode.email.Log.persist(eu.faircode.email.EntityLog.Type.Debug, "$computeFunction queued=$queued.value") + } else { + queued.value++ + queryExecutor.execute(refreshRunnable)