fix issue with utf8 encoding in logger stdout
This commit is contained in:
parent
530afba5cb
commit
d9782b2dd1
3 changed files with 3 additions and 3 deletions
|
|
@ -306,7 +306,7 @@ class Service(object):
|
|||
match = re.search(r'Successfully built ([0-9a-f]+)', line)
|
||||
if match:
|
||||
image_id = match.group(1)
|
||||
sys.stdout.write(line.encode(sys.__stdout__.encoding or 'utf8'))
|
||||
sys.stdout.write(line.encode(sys.__stdout__.encoding or 'utf-8'))
|
||||
|
||||
if image_id is None:
|
||||
raise BuildError(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue