mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
flush stdout logs (#2669)
else pipes end up not getting log output until much later
This commit is contained in:
parent
60f601e4e6
commit
cc8f7c26a0
@ -31,6 +31,7 @@ proc setupStdoutLogging*(logLevel: string) =
|
|||||||
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe, raises: [Defect].} =
|
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe, raises: [Defect].} =
|
||||||
try:
|
try:
|
||||||
stdout.write(msg)
|
stdout.write(msg)
|
||||||
|
stdout.flushFile()
|
||||||
except IOError as err:
|
except IOError as err:
|
||||||
logLoggingFailure(cstring(msg), err)
|
logLoggingFailure(cstring(msg), err)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user