diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py index 035bd03597..eaaf8fe085 100644 --- a/geo-replication/syncdaemon/syncdutils.py +++ b/geo-replication/syncdaemon/syncdutils.py @@ -850,7 +850,10 @@ def errlog(self): def logerr(l): logging.error(self.args[0] + "> " + l) for l in self.elines: + if isinstance(l, str): + l = l.encode() ls = l.split(b'\n') + ls = list(map(lambda x: x.decode("utf-8"), ls)) ls[0] = lp + ls[0] lp = ls.pop() for ll in ls: