Flush log file output to avoid slow buffering

This commit is contained in:
Bob Lantz
2013-09-11 12:00:16 -07:00
committed by Brian O'Connor
parent 20005f5bbc
commit 662f2447e3
+2
View File
@@ -71,6 +71,7 @@ isoURLs = {
'ubuntu-13.10-server-amd64.iso',
}
LogStartTime = time()
LogFile = None
@@ -91,6 +92,7 @@ def log( *args, **kwargs ):
if cr:
output += '\n'
LogFile.write( output )
LogFile.flush()
def run( cmd, **kwargs ):