mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 16:03:13 +00:00
add new line to stdout/stderr logs when logging lines
This commit is contained in:
parent
1b47e16405
commit
91b5084047
@ -469,7 +469,7 @@ proc captureOutput(
|
|||||||
while (let line = await stream.readLine(0, "\n"); line != ""):
|
while (let line = await stream.readLine(0, "\n"); line != ""):
|
||||||
try:
|
try:
|
||||||
output.add line
|
output.add line
|
||||||
filePath.appendFile(line.stripAnsi)
|
filePath.appendFile(line & "\n".stripAnsi)
|
||||||
await sleepAsync(1.nanos)
|
await sleepAsync(1.nanos)
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
warn "Failed to write test stdout and/or stderr to file", error = e.msg
|
warn "Failed to write test stdout and/or stderr to file", error = e.msg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user