app: trim server lines before logging

This commit is contained in:
Jeffrey Morgan 2023-07-11 16:43:19 -07:00
parent ed6abba75a
commit dcb6ba389a

View file

@ -59,11 +59,11 @@ function server() {
const proc = spawn(binary, ['serve'])
proc.stdout.on('data', data => {
logger.info(data.toString())
logger.info(data.toString().trim())
})
proc.stderr.on('data', data => {
logger.error(data.toString())
logger.error(data.toString().trim())
})
proc.on('exit', () => {