mirror of
https://github.com/ollama/ollama.git
synced 2025-04-06 10:58:36 +02:00
app: trim server lines before logging
This commit is contained in:
parent
ed6abba75a
commit
dcb6ba389a
@ -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', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user