From 9477316b615bf895b8448a197afcef60e9c7aeab Mon Sep 17 00:00:00 2001 From: ganfra Date: Tue, 19 Feb 2019 19:37:16 +0100 Subject: [PATCH] Sync : add timber log on sync failure --- .../matrix/android/internal/session/sync/job/SyncThread.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/sync/job/SyncThread.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/sync/job/SyncThread.kt index 1ebd4f5af6..9b2fafaaf9 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/sync/job/SyncThread.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/sync/job/SyncThread.kt @@ -109,6 +109,7 @@ internal class SyncThread(private val syncTask: SyncTask, } override fun onFailure(failure: Throwable) { + Timber.e(failure) if (failure !is Failure.NetworkConnection) { // Wait 10s before retrying sleep(RETRY_WAIT_TIME_MS)