Skip to content

Commit

Permalink
Simplified logging
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 5, 2020
1 parent 8d80750 commit 2c5e453
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/quorum/log.py
Expand Up @@ -210,7 +210,8 @@ def flush_to_file(self, path, count = None, level = None, clear = True):
file = open(path, "wb")
try:
for message in messages:
file.write(message + "\n")
message = legacy.bytes(message, "utf-8", force = True)
file.write(message + b"\n")
finally:
file.close()
if clear: self.clear()
Expand Down

0 comments on commit 2c5e453

Please sign in to comment.