Flush after terminal output.

Makes behaviour on the shell less mysterious.
This commit is contained in:
Aldo Cortesi 2012-07-01 09:37:03 +12:00
parent 35fdd16940
commit 9985cf5473
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,7 @@ class DumpMaster(flow.FlowMaster):
def add_event(self, e, level="info"):
if self.eventlog:
print >> self.outfile, e
self.outfile.flush()
def handle_log(self, l):
self.add_event(l.msg)
@ -200,6 +201,8 @@ class DumpMaster(flow.FlowMaster):
print >> self.outfile
print >> self.outfile, result
print >> self.outfile, "\n"
if self.o.verbosity:
self.outfile.flush()
self.state.delete_flow(f)
if self.o.wfile: