From aa9438b88666ac9a0974aebbc5a1f5974ea3d9b8 Mon Sep 17 00:00:00 2001 From: itsareva Date: Wed, 19 Mar 2025 14:39:58 +0100 Subject: [PATCH] geo-replication: Exception in the errlog after an unsuccessful attempt to start a geo-replication Fixes: #4439 Signed-off-by: Irina Tsareva --- geo-replication/syncdaemon/syncdutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py index 035bd035975..eaaf8fe085f 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: