Skip to content

Commit

Permalink
printJobLog convert bytes to utf-8
Browse files Browse the repository at this point in the history
Fix for problem raised in issue #3004
  • Loading branch information
johnbradley authored and adamnovak committed Mar 11, 2020
1 parent 40b395b commit ff5ef69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toil/utils/toilStatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def printJobLog(self):
if job.logJobStoreFileID is not None:
msg = "LOG_FILE_OF_JOB:%s LOG: =======>\n" % job
with job.getLogFileHandle(self.jobStore) as fH:
msg += fH.read()
msg += fH.read().decode('utf-8')
msg += "<========="
else:
msg = "LOG_FILE_OF_JOB:%s LOG: Job has no log file" % job
Expand Down

0 comments on commit ff5ef69

Please sign in to comment.