Skip to content

Commit

Permalink
flush stdout logs (#2669)
Browse files Browse the repository at this point in the history
else pipes end up not getting log output until much later
  • Loading branch information
arnetheduck authored Jun 29, 2021
1 parent 60f601e commit cc8f7c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beacon_chain/nimbus_binary_common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cc8f7c2

Please sign in to comment.