Commit 38879834 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Flush logging message

parent 47dbb015
......@@ -43,11 +43,11 @@ class LOG:
line, buf = buf.split('\n', 1)
if self.prefix != None:
print(self.prefix, end='', file=sys.stderr)
print(line, file=sys.stderr)
print(line, file=sys.stderr, flush=True)
if len(buf):
if self.prefix != None:
print(self.prefix, end='', file=sys.stderr)
print(buf, file=sys.stderr)
print(buf, file=sys.stderr, flush=True)
def ERROR(self, *args):
self.MESSAGE(*args, level=LOG_ERROR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment