Add fflush(stdout) after writing to stdout with printf

fixes issues with backlog when server is running through a pipe
This commit is contained in:
Newow 2023-06-11 14:55:53 +06:00 committed by GitHub
parent 3d76bc0108
commit 41609ef69a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,6 +266,7 @@ void Log::writeLine(const char *line, int level)
CIrrDeviceiOS::debugPrint(line);
#else
printf("%s", line);
fflush(stdout);
#endif
}
resetTerminalColor(); // this prints a \n