Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 759d5e3

Browse files
committed
fix: trim log line endings
1 parent 6ed72b8 commit 759d5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default (e: IEventEmitter) => {
4444
if (!canWrite(m.severity)) return
4545
let msg = m.type === 'error' ? Errors.getErrorMessage(m.error, {stack: true}) : Output.render(m)
4646
msg = deps.stripAnsi(chomp(msg))
47-
let lines = msg.split('\n').map(l => `${timestamp()} ${l}`)
47+
let lines = msg.split('\n').map(l => `${timestamp()} ${l}`.trimRight())
4848
buffer.push(...lines)
4949
flush(50).catch(console.error)
5050
}

0 commit comments

Comments
 (0)