Raise sync timing log level

Change-Id: I6b7d98675c2a5d03510d357ea147d46d35f5a903
This commit is contained in:
SpiritCroc 2022-06-05 12:46:35 +02:00
parent c54e623675
commit a1e6e50ad4

View file

@ -81,7 +81,7 @@ internal class SyncResponseHandler @Inject constructor(
} }
cryptoService.onSyncWillProcess(isInitialSync) cryptoService.onSyncWillProcess(isInitialSync)
}.also { }.also {
Timber.v("Finish handling start cryptoService in $it ms") Timber.i("Finish handling start cryptoService in $it ms")
} }
// Handle the to device events before the room ones // Handle the to device events before the room ones
@ -94,7 +94,7 @@ internal class SyncResponseHandler @Inject constructor(
} }
} }
}.also { }.also {
Timber.v("Finish handling toDevice in $it ms") Timber.i("Finish handling toDevice in $it ms")
} }
val aggregator = SyncResponsePostTreatmentAggregator() val aggregator = SyncResponsePostTreatmentAggregator()
@ -115,7 +115,7 @@ internal class SyncResponseHandler @Inject constructor(
} }
} }
}.also { }.also {
Timber.v("Finish handling rooms in $it ms") Timber.i("Finish handling rooms in $it ms")
} }
measureTimeMillis { measureTimeMillis {
@ -126,7 +126,7 @@ internal class SyncResponseHandler @Inject constructor(
} }
} }
}.also { }.also {
Timber.v("Finish handling groups in $it ms") Timber.i("Finish handling groups in $it ms")
} }
measureTimeMillis { measureTimeMillis {
@ -135,14 +135,14 @@ internal class SyncResponseHandler @Inject constructor(
userAccountDataSyncHandler.handle(realm, syncResponse.accountData) userAccountDataSyncHandler.handle(realm, syncResponse.accountData)
} }
}.also { }.also {
Timber.v("Finish handling accountData in $it ms") Timber.i("Finish handling accountData in $it ms")
} }
measureTimeMillis { measureTimeMillis {
Timber.v("Handle Presence") Timber.v("Handle Presence")
presenceSyncHandler.handle(realm, syncResponse.presence) presenceSyncHandler.handle(realm, syncResponse.presence)
}.also { }.also {
Timber.v("Finish handling Presence in $it ms") Timber.i("Finish handling Presence in $it ms")
} }
tokenStore.saveToken(realm, syncResponse.nextBatch) tokenStore.saveToken(realm, syncResponse.nextBatch)
} }