]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: increase debug logging in ImageCtx
authorJason Dillaman <dillaman@redhat.com>
Tue, 20 Oct 2020 06:56:58 +0000 (02:56 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 25 Oct 2020 23:37:55 +0000 (19:37 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.cc

index 39f4b0ffc4fd435cf3da87ad88bfb5f3d5a7a5c0..ec54762ce01bdb1fe0dcd89a35ac30116b1168b6 100644 (file)
@@ -121,6 +121,10 @@ librados::IoCtx duplicate_io_ctx(librados::IoCtx& io_ctx) {
       asok_hook(nullptr),
       trace_endpoint("librbd")
   {
+    ldout(cct, 10) << this << " " << __func__ << ": "
+                   << "image_name=" << image_name << ", "
+                   << "image_id=" << image_id << dendl;
+
     if (snap)
       snap_name = snap;
 
@@ -147,6 +151,8 @@ librados::IoCtx duplicate_io_ctx(librados::IoCtx& io_ctx) {
   }
 
   ImageCtx::~ImageCtx() {
+    ldout(cct, 10) << this << " " << __func__ << dendl;
+
     ceph_assert(config_watcher == nullptr);
     ceph_assert(image_watcher == NULL);
     ceph_assert(exclusive_lock == NULL);