Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/logger.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/logger.py')
-rw-r--r--sugar/logger.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/logger.py b/sugar/logger.py
index a9042a0..3676c56 100644
--- a/sugar/logger.py
+++ b/sugar/logger.py
@@ -78,6 +78,9 @@ class StdoutCatcher:
_log_writer.write(STDOUT_LEVEL, txt)
sys.__stdout__.write(txt)
+ def flush(self):
+ sys.__stderr__.flush()
+
class StderrCatcher:
def write(self, txt):
_log_writer.write(STDERR_LEVEL, txt)