Flushing stderr for each line when using --machineReadable flag

This commit is contained in:
Daniel Wolf 2017-10-13 22:41:16 +02:00
parent 04595a0441
commit e90f559a10
1 changed files with 2 additions and 0 deletions

View File

@ -118,5 +118,7 @@ void MachineReadableStderrSink::receive(const logging::Entry& entry) {
if (line) {
std::cerr << *line << std::endl;
// Make sure the stream is flushed so that applications listening to it get the line immediately
fflush(stderr);
}
}