summaryrefslogtreecommitdiff
path: root/crocoite/logger.py
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite/logger.py')
-rw-r--r--crocoite/logger.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crocoite/logger.py b/crocoite/logger.py
index 4b43e02..e8ff594 100644
--- a/crocoite/logger.py
+++ b/crocoite/logger.py
@@ -97,6 +97,7 @@ class PrintConsumer (Consumer):
def __call__ (self, **kwargs):
sys.stderr.write (str (kwargs))
sys.stderr.write ('\n')
+ sys.stderr.flush ()
return kwargs
class JsonEncoder (json.JSONEncoder):
@@ -118,6 +119,7 @@ class JsonPrintConsumer (Consumer):
if kwargs['level'] >= self.minLevel:
json.dump (kwargs, sys.stdout, cls=JsonEncoder)
sys.stdout.write ('\n')
+ sys.stdout.flush ()
return kwargs
class DatetimeConsumer (Consumer):