Skip to content

Commit 5362c65

Browse files
committed
Log to stderr instead of stdout
Fixes #2203
1 parent b17b518 commit 5362c65

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/util/log.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import chalk from 'chalk'
22

33
export default {
44
info(messages) {
5-
console.log('')
5+
console.warn('')
66
messages.forEach(message => {
7-
console.log(chalk.bold.cyan('info'), '-', message)
7+
console.warn(chalk.bold.cyan('info'), '-', message)
88
})
99
},
1010
warn(messages) {
11-
console.log('')
11+
console.warn('')
1212
messages.forEach(message => {
13-
console.log(chalk.bold.yellow('warn'), '-', message)
13+
console.warn(chalk.bold.yellow('warn'), '-', message)
1414
})
1515
},
1616
risk(messages) {
17-
console.log('')
17+
console.warn('')
1818
messages.forEach(message => {
19-
console.log(chalk.bold.magenta('risk'), '-', message)
19+
console.warn(chalk.bold.magenta('risk'), '-', message)
2020
})
2121
},
2222
}

0 commit comments

Comments
 (0)