Sync : add timber log on sync failure

This commit is contained in:
ganfra 2019-02-19 19:37:16 +01:00
parent 36d1d52880
commit 9477316b61
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ internal class SyncThread(private val syncTask: SyncTask,
} }


override fun onFailure(failure: Throwable) { override fun onFailure(failure: Throwable) {
Timber.e(failure)
if (failure !is Failure.NetworkConnection) { if (failure !is Failure.NetworkConnection) {
// Wait 10s before retrying // Wait 10s before retrying
sleep(RETRY_WAIT_TIME_MS) sleep(RETRY_WAIT_TIME_MS)