Flush log file output to avoid slow buffering

This commit is contained in:
Bob Lantz authored and Brian O'Connor committed 2013-09-11 12:00:16 -07:00
1 parent 20005f5bbc
commit 662f2447e3
1 file changed
+2
+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 ):