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:
parent
3d76bc0108
commit
41609ef69a
@ -266,6 +266,7 @@ void Log::writeLine(const char *line, int level)
|
|||||||
CIrrDeviceiOS::debugPrint(line);
|
CIrrDeviceiOS::debugPrint(line);
|
||||||
#else
|
#else
|
||||||
printf("%s", line);
|
printf("%s", line);
|
||||||
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
resetTerminalColor(); // this prints a \n
|
resetTerminalColor(); // this prints a \n
|
||||||
|
Loading…
Reference in New Issue
Block a user