Skip to content

Commit be75645

Browse files
committed
flush stdout logs (#2669)
else pipes end up not getting log output until much later
1 parent 4ef784f commit be75645

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

beacon_chain/nimbus_binary_common.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ proc setupStdoutLogging*(logLevel: string) =
3131
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe, raises: [Defect].} =
3232
try:
3333
stdout.write(msg)
34+
stdout.flushFile()
3435
except IOError as err:
3536
logLoggingFailure(cstring(msg), err)
3637

0 commit comments

Comments
 (0)