mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-21 23:32:51 +00:00
Fixed logging
This commit is contained in:
parent
43d89b6c13
commit
3d367c429f
2 changed files with 4 additions and 4 deletions
|
@ -60,7 +60,7 @@ internal class RoomTrackingLiveData<T> (
|
|||
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<T> (
|
|||
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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue