Skip to content

Commit d19e6d2

Browse files
authored
Merge pull request #5209 from vector-im/michaelk/reduce_debug_logging_loop
Reduce verbosity of CleanupSession debug logs.
2 parents e6415a4 + edd9546 commit d19e6d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/5209.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Reduce verbosity of debug logging,

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/cleanup/CleanupSession.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ internal class CleanupSession @Inject constructor(
9494
do {
9595
val sessionRealmCount = Realm.getGlobalInstanceCount(realmSessionConfiguration)
9696
val cryptoRealmCount = Realm.getGlobalInstanceCount(realmCryptoConfiguration)
97-
Timber.d("Wait for all Realm instance to be closed ($sessionRealmCount - $cryptoRealmCount)")
9897
if (sessionRealmCount > 0 || cryptoRealmCount > 0) {
99-
Timber.d("Waiting ${TIME_TO_WAIT_MILLIS}ms")
98+
Timber.d("Waiting ${TIME_TO_WAIT_MILLIS}ms for all Realm instance to be closed ($sessionRealmCount - $cryptoRealmCount)")
10099
delay(TIME_TO_WAIT_MILLIS)
101100
timeToWaitMillis -= TIME_TO_WAIT_MILLIS
102101
} else {
102+
Timber.d("Finished waiting for all Realm instance to be closed ($sessionRealmCount - $cryptoRealmCount)")
103103
timeToWaitMillis = 0
104104
}
105105
} while (timeToWaitMillis > 0)

0 commit comments

Comments
 (0)