From e0660ce01cbabe1c12f3a602b633316e00a7aa94 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 23 Apr 2020 15:25:10 +0200 Subject: [PATCH] log while retrying --- src/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.ts b/src/utils.ts index ad67ae62b..647b30674 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -757,6 +757,7 @@ export async function retryNetworkOperation(maxAttempts, callback) { try { if (attempts > 0) { const timeout = 1000 * Math.pow(2, attempts); + console.log(`network operation failed ${attempts} times, retrying in ${timeout}ms...`); await new Promise(r => setTimeout(r, timeout)); } return await callback();