From be756454a4a907d3bb05f65208561775e809a5ed 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 7a6378f7f..0ce0cad41 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)