From d1c2c46224d4e6130a0fe4b922ea312bf7f6896a Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Mon, 16 Jan 2023 10:36:16 +0000 Subject: [PATCH] Merge pull request #11266 from overleaf/jpa-translations-sync-debugging [web] scripts: verbose logging in upload script GitOrigin-RevId: dbc8793358fee63dabf1d5a9b80c3613a147a53b --- services/web/scripts/translations/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/scripts/translations/upload.js b/services/web/scripts/translations/upload.js index 29b6e7d8dd..3a2034ceed 100644 --- a/services/web/scripts/translations/upload.js +++ b/services/web/scripts/translations/upload.js @@ -35,7 +35,7 @@ async function pollUploadStatus(importId) { await sleep(5000) } if (task.status === 'failed') { - console.error({ task }) + console.error(JSON.stringify({ task }, null, 2)) throw new Error('upload failed') } }