decode utf-8
This commit is contained in:
parent
1bb789dedf
commit
514318311e
@ -37,9 +37,9 @@ class Logger(Thread):
|
|||||||
output = non_block_read(stream)
|
output = non_block_read(stream)
|
||||||
if output == None or output == b'':
|
if output == None or output == b'':
|
||||||
break
|
break
|
||||||
print(output.decode('ascii'))
|
|
||||||
f.write(output)
|
f.write(output)
|
||||||
f.flush()
|
f.flush()
|
||||||
|
print(output.decode('utf-8'))
|
||||||
finally:
|
finally:
|
||||||
self.mutex.release()
|
self.mutex.release()
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user