app: trim server lines before logging
This commit is contained in:
parent
ed6abba75a
commit
dcb6ba389a
1 changed files with 2 additions and 2 deletions
|
@ -59,11 +59,11 @@ function server() {
|
||||||
const proc = spawn(binary, ['serve'])
|
const proc = spawn(binary, ['serve'])
|
||||||
|
|
||||||
proc.stdout.on('data', data => {
|
proc.stdout.on('data', data => {
|
||||||
logger.info(data.toString())
|
logger.info(data.toString().trim())
|
||||||
})
|
})
|
||||||
|
|
||||||
proc.stderr.on('data', data => {
|
proc.stderr.on('data', data => {
|
||||||
logger.error(data.toString())
|
logger.error(data.toString().trim())
|
||||||
})
|
})
|
||||||
|
|
||||||
proc.on('exit', () => {
|
proc.on('exit', () => {
|
||||||
|
|
Loading…
Reference in a new issue