Merge pull request #2331 from dnephin/flush_log_buffer_when_printing_logs
Flush the log stream after writing each line
This commit is contained in:
commit
c8fa0a902a
2 changed files with 42 additions and 41 deletions
|
|
@ -26,6 +26,7 @@ class LogPrinter(object):
|
|||
generators = list(self._make_log_generators(self.monochrome, prefix_width))
|
||||
for line in Multiplexer(generators).loop():
|
||||
self.output.write(line)
|
||||
self.output.flush()
|
||||
|
||||
def _make_log_generators(self, monochrome, prefix_width):
|
||||
def no_color(text):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue