clean logs

This commit is contained in:
valere 2022-12-16 09:34:01 +01:00
parent 3146f5209b
commit ca2d36303c

View File

@ -450,13 +450,13 @@ class CommonTestHelper internal constructor(context: Context, val cryptoConfig:
var backoffTry = 0 var backoffTry = 0
val now = System.currentTimeMillis() val now = System.currentTimeMillis()
while (!predicate()) { while (!predicate()) {
Timber.w("## VALR Trial nb $backoffTry") Timber.v("## retryWithBackoff Trial nb $backoffTry")
withContext(Dispatchers.IO) { withContext(Dispatchers.IO) {
delay(backoff[backoffTry.coerceAtMost(backoff.size - 1)]) delay(backoff[backoffTry.coerceAtMost(backoff.size - 1)])
} }
backoffTry++ backoffTry++
if (System.currentTimeMillis() - now > timeout) { if (System.currentTimeMillis() - now > timeout) {
Timber.w("## VALR Trial fail") Timber.v("## retryWithBackoff Trial fail")
onFail?.invoke() onFail?.invoke()
return return
} }