mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-05 15:03:07 +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 != ""):
|
||||
try:
|
||||
output.add line
|
||||
filePath.appendFile(line.stripAnsi)
|
||||
filePath.appendFile(line & "\n".stripAnsi)
|
||||
await sleepAsync(1.nanos)
|
||||
except IOError as e:
|
||||
warn "Failed to write test stdout and/or stderr to file", error = e.msg
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user