Merge branch '15655-logtail-encoding'
authorEric Biagiotti <ebiagiotti@veritasgenetics.com>
Wed, 9 Oct 2019 13:31:06 +0000 (09:31 -0400)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 7 Nov 2019 18:35:12 +0000 (15:35 -0300)
refs #15655

Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti@veritasgenetics.com>

sdk/cwl/arvados_cwl/done.py

index 9b26ad7064207e8e76e4f819604833ab7b7a1dd7..806819afe29299277b9d22ccf9d121c7fd4041ce 100644 (file)
@@ -70,7 +70,7 @@ def logtail(logcollection, logfunc, header, maxlen=25):
             logname = log[:-4]
             logt = deque([], maxlen)
             mergelogs[logname] = logt
-            with logcollection.open(log) as f:
+            with logcollection.open(log, encoding="utf-8") as f:
                 for l in f:
                     if containersapi:
                         g = timestamp_re.match(l)