Skip to content

Commit

Permalink
Fix non TTY logging, insert new lines between logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KidkArolis committed Feb 6, 2022
1 parent 83cec6b commit 084a35d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function replace(...args) {
process.stdout.cursorTo(0)
}
process.stdout.write(args.join(' '))
if (!process.stdout.isTTY) {
process.stdout.write('\n')
}
}

module.exports = function (shouldLogVerbose, quiet, prefix = 'jetpack ›') {
Expand Down

0 comments on commit 084a35d

Please sign in to comment.