Skip to content
Snippets Groups Projects
Commit 38879834 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Flush logging message

parent 47dbb015
Branches twilight
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment