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

Commit

Permalink
fix: trim log line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 6ed72b8 commit 759d5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default (e: IEventEmitter) => {
if (!canWrite(m.severity)) return
let msg = m.type === 'error' ? Errors.getErrorMessage(m.error, {stack: true}) : Output.render(m)
msg = deps.stripAnsi(chomp(msg))
let lines = msg.split('\n').map(l => `${timestamp()} ${l}`)
let lines = msg.split('\n').map(l => `${timestamp()} ${l}`.trimRight())
buffer.push(...lines)
flush(50).catch(console.error)
}
Expand Down

0 comments on commit 759d5e3

Please sign in to comment.