Skip to content

Commit

Permalink
chore: use console.info for info logging (#1531)
Browse files Browse the repository at this point in the history
* Update common.js

* Update basic.js
  • Loading branch information
bilalswiftsolutions authored Oct 25, 2023
1 parent 75146a7 commit e73c731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function generateFinalPath (opts) {

function info (message, quiet) {
if (!quiet) {
console.error(message)
console.info(message)
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit e73c731

Please sign in to comment.