Merge "Py3: Encode log messages in StorletLogger"

This commit is contained in:
Zuul 2020-01-16 23:12:46 +00:00 committed by Gerrit Code Review
commit 417cf25e53

View File

@ -218,7 +218,7 @@ class StorletLogger(object):
def _emit_log(self, level, msg):
msg = '%s %s: %s' % (self.storlet_name, level, msg)
self.log_file.write(msg)
self.log_file.write(msg.encode('utf-8'))
def debug(self, msg):
self._emit_log('DEBUG', msg)