From f298a58aeba7718fb13c636dcff3e6ac6bc979ce Mon Sep 17 00:00:00 2001 From: Cori Hudson Date: Thu, 22 Sep 2022 13:39:36 -0400 Subject: [PATCH] fix: use stdout instead of console --- lib/transifex.js | 3 +-- scripts/tx-pull-www.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/transifex.js b/lib/transifex.js index b99977cf..ac262dae 100644 --- a/lib/transifex.js +++ b/lib/transifex.js @@ -78,8 +78,7 @@ const txPull = async function (project, resource, locale, mode = 'default') { buffer = await download(url); return JSON.parse(buffer.toString()); } catch (e) { - // eslint-disable-next-line no-console - console.error(`got ${e.message}, retrying after ${i + 1} failed attempt(s)`); + process.stdout.write(`got ${e.message}, retrying after ${i + 1} failed attempt(s)\n`); } } throw Error('failed to pull after 5 retries'); diff --git a/scripts/tx-pull-www.js b/scripts/tx-pull-www.js index 1f528acb..585ce09f 100755 --- a/scripts/tx-pull-www.js +++ b/scripts/tx-pull-www.js @@ -63,8 +63,7 @@ const getLocaleData = async function (item) { file: fileName }; } catch (e) { - // eslint-disable-next-line no-console - console.error(`got ${e.message}, retrying after ${i + 1} attempts`); + process.stdout.write(`got ${e.message}, retrying after ${i + 1} attempt(s)\n`); } } throw Error('failed to pull translations after 5 retries');