From de5125b079c51528b7121d27800d6f396afb36e0 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 10 Jul 2014 19:12:33 -0400 Subject: [PATCH] Correctly handle logger flushing --- korman/exporter/logger.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/korman/exporter/logger.py b/korman/exporter/logger.py index f6dd6ab..83a45a5 100644 --- a/korman/exporter/logger.py +++ b/korman/exporter/logger.py @@ -57,6 +57,11 @@ class ExportLogger: sys.stdout = self._stdout sys.stderr = self._stderr + def flush(self): + self._file.flush() + self._stdout.flush() + self._stderr.flush() + def write(self, str): self._file.write(str) self._stdout.write(str)