Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
dcb6ba38
Commit
dcb6ba38
authored
Jul 11, 2023
by
Jeffrey Morgan
Browse files
app: trim server lines before logging
parent
ed6abba7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/src/index.ts
app/src/index.ts
+2
-2
No files found.
app/src/index.ts
View file @
dcb6ba38
...
@@ -59,11 +59,11 @@ function server() {
...
@@ -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
'
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment