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

View file

@ -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)