mirror of
https://github.com/munki/munki.git
synced 2026-01-07 15:10:04 -06:00
Remove UTF-8 encoding when logging for better Python 3 behavior
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user