]> git.apps.os.sepia.ceph.com Git - ceph.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>
Thu, 10 Oct 2019 23:19:33 +0000 (19:19 -0400)
Fixes: http://tracker.ceph.com/issues/40865
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7a6a2aefd72faf1da6594ca6bc5f8bf14a387edd)

src/cls/rbd/cls_rbd.cc

index 6fdc19cb45210497511886c556c956186ab872ab..bdfd7e886146214060f59744d7a8ee534dafaa5d 100644 (file)
@@ -4141,8 +4141,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;
   }