]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: fix the logging message
authorKefu Chai <kchai@redhat.com>
Fri, 5 Feb 2021 09:52:58 +0000 (17:52 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 14:46:51 +0000 (22:46 +0800)
otherwise not all formatting parameters are formatted.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/rbd_support/schedule.py

index c5431be841e8bec868f87c2457f0c9230a437bd4..eaee182cb04e5f645448c138299b770ceeb04614 100644 (file)
@@ -407,8 +407,8 @@ class Schedules:
                                     image_validator)
                             except ValueError:
                                 self.handler.log.debug(
-                                    "Stail schedule key {} in pool".format(
-                                        k, pool_name))
+                                    "Stale schedule key %s in pool %s",
+                                    k, pool_name)
                                 stale_keys += (k,)
                                 continue