]> git-server-git.apps.pok.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)
committerPrashant D <pdhange@redhat.com>
Fri, 9 Aug 2019 01:32:26 +0000 (21:32 -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 5d355d573fe07f4b95de92c28dd2f13ddd368dad..620b0b3963c9e2e47b12c1fe11507672a52e8463 100644 (file)
@@ -4723,8 +4723,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;
   }