Skip to content

Commit

Permalink
Attempt to prevent logs getting stuck Adorkable#2
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkFieldX committed Jan 21, 2021
1 parent 520853d commit ea02f1f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public struct LoggerTextOutputStreamPipe: Pipe {
var stream = self.stream
if stream == nil {
Swift.print("\(formattedLogLine)")
fflush(stdout)
return
}
stream!.write("\(formattedLogLine)\n")
Expand Down

0 comments on commit ea02f1f

Please sign in to comment.