From e73c731511cb269cb314d069a865b09feeb256b2 Mon Sep 17 00:00:00 2001 From: Bilal Arshad <57621713+bilalswiftsolutions@users.noreply.github.com> Date: Thu, 26 Oct 2023 00:44:54 +0500 Subject: [PATCH] chore: use console.info for info logging (#1531) * Update common.js * Update basic.js --- src/common.js | 2 +- test/basic.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.js b/src/common.js index 1f6111ff..0bf17349 100644 --- a/src/common.js +++ b/src/common.js @@ -21,7 +21,7 @@ function generateFinalPath (opts) { function info (message, quiet) { if (!quiet) { - console.error(message) + console.info(message) } } diff --git a/test/basic.js b/test/basic.js index 98934a2a..ac6042ab 100644 --- a/test/basic.js +++ b/test/basic.js @@ -28,7 +28,7 @@ test('setting the quiet option does not print messages', t => { common.warning('warning', true) t.true(console.warn.notCalled, 'quieted common.warning should not call console.warn') common.info('info', true) - t.true(console.error.notCalled, 'quieted common.info should not call console.error') + t.true(console.error.notCalled, 'quieted common.info should not call console.info') }) test('download argument: download.{arch,platform,version,artifactName} does not overwrite {arch,platform,version,artifactName}', t => {