diff piecrust/publishing/shell.py @ 614:a2d9ef307a08

publish: Make the `shell` log update faster by flushing the pipe.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 04 Feb 2016 21:49:15 -0800
parents e2e955a3bb25
children 8f9c0bdb3724
line wrap: on
line diff
--- a/piecrust/publishing/shell.py	Thu Feb 04 08:05:03 2016 -0800
+++ b/piecrust/publishing/shell.py	Thu Feb 04 21:49:15 2016 -0800
@@ -60,6 +60,7 @@
             sys.stdout.flush()
             if self.log_fp:
                 self.log_fp.write(line_str)
+                self.log_fp.flush()
 
         self.proc.communicate()
         logger.debug("Publish monitor exiting.")