Remove UTF-8 encoding when logging for better Python 3 behavior

This commit is contained in:
Greg Neagle
2019-06-20 21:50:43 -07:00
parent 4ea8757036
commit 2ea3740ddb

View File

@@ -53,7 +53,7 @@ def log(msg, logname=''):
try:
fileobj = open(logpath, mode='a', buffering=1)
try:
print(time.strftime(formatstr), msg.encode('UTF-8'), file=fileobj)
print(time.strftime(formatstr), msg, file=fileobj)
except (OSError, IOError):
pass
fileobj.close()