watch-logs: fix py3 encoding issues
This commit is contained in:
parent
3c548a9923
commit
94f116e898
2 changed files with 3 additions and 2 deletions
|
|
@ -374,7 +374,7 @@ def watch_logs(session, tasklist, opts, poll_interval):
|
|||
sys.stdout.write("\n")
|
||||
sys.stdout.write("==> %s <==\n" % currlog)
|
||||
lastlog = currlog
|
||||
sys.stdout.write(contents)
|
||||
sys.stdout.write(contents.decode('utf8'))
|
||||
|
||||
if not tasklist:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue