From: Kefu Chai Date: Fri, 5 Feb 2021 11:01:34 +0000 (+0800) Subject: mgr/rbd_support: print bytes after decoding them X-Git-Tag: v17.1.0~2831^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4bd21e82de0e8a4ea172f529668722a204349555;p=ceph.git mgr/rbd_support: print bytes after decoding them Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/rbd_support/task.py b/src/pybind/mgr/rbd_support/task.py index c7fe0a0ca954..fcec7dcdc463 100644 --- a/src/pybind/mgr/rbd_support/task.py +++ b/src/pybind/mgr/rbd_support/task.py @@ -316,7 +316,9 @@ class TaskHandler: task_json = task.to_json() omap_keys = (task.sequence_key, ) omap_vals = (str.encode(task_json), ) - self.log.info("adding task: {} {}".format(omap_keys[0], omap_vals[0])) + self.log.info("adding task: %s %s", + omap_keys[0].decode(), + omap_vals[0].decode()) with rados.WriteOpCtx() as write_op: ioctx.set_omap(write_op, omap_keys, omap_vals)