Merge branch '15655-logtail-encoding'
[arvados.git] / 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)