From cc8f7c26a0990843c5837efc0779e5d335297b11 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Tue, 29 Jun 2021 15:53:36 +0200 Subject: [PATCH] flush stdout logs (#2669) else pipes end up not getting log output until much later --- beacon_chain/nimbus_binary_common.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/beacon_chain/nimbus_binary_common.nim b/beacon_chain/nimbus_binary_common.nim index f6ca43b09..9de896ff4 100644 --- a/beacon_chain/nimbus_binary_common.nim +++ b/beacon_chain/nimbus_binary_common.nim @@ -31,6 +31,7 @@ proc setupStdoutLogging*(logLevel: string) = proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe, raises: [Defect].} = try: stdout.write(msg) + stdout.flushFile() except IOError as err: logLoggingFailure(cstring(msg), err)