]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cls/rbd: reduce verbosity of debug logs for non-errors
authorJason Dillaman <dillaman@redhat.com>
Mon, 22 Jul 2019 12:55:25 +0000 (08:55 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 22 Jul 2019 14:14:16 +0000 (10:14 -0400)
Fixes: http://tracker.ceph.com/issues/40865
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/cls/rbd/cls_rbd.cc

index 8a3201c91f29ff636582856c7ea5671e8d6381e8..1ab5c8cc00baa463dad2e0cb52dcf7c1b90f3266 100644 (file)
@@ -5743,8 +5743,10 @@ int mirror_image_get_image_id(cls_method_context_t hctx, bufferlist *in,
   std::string image_id;
   int r = read_key(hctx, mirror::global_key(global_id), &image_id);
   if (r < 0) {
-    CLS_ERR("error retrieving image id for global id '%s': %s",
-            global_id.c_str(), cpp_strerror(r).c_str());
+    if (r != -ENOENT) {
+      CLS_ERR("error retrieving image id for global id '%s': %s",
+              global_id.c_str(), cpp_strerror(r).c_str());
+    }
     return r;
   }