]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: print bytes after decoding them
authorKefu Chai <kchai@redhat.com>
Fri, 5 Feb 2021 11:01:34 +0000 (19:01 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 14:46:51 +0000 (22:46 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/rbd_support/task.py

index c7fe0a0ca95434efef189e89576a7cded73d9f9e..fcec7dcdc46355180bb02763ac75c64321da7d80 100644 (file)
@@ -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)