]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/Watch: slightly more informative debug output
authorSage Weil <sage@redhat.com>
Wed, 13 Apr 2016 19:21:04 +0000 (15:21 -0400)
committerSage Weil <sage@redhat.com>
Wed, 13 Apr 2016 19:32:39 +0000 (15:32 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/Watch.cc

index dc665e02d09ca53b5af6889175b75a38c7ee79b8..f4411baf7feee2008b4bc4f5c04bfed4b02ab144 100644 (file)
@@ -360,10 +360,10 @@ void Watch::got_ping(utime_t t)
 void Watch::connect(ConnectionRef con, bool _will_ping)
 {
   if (conn == con) {
-    dout(10) << "connecting - already connected" << dendl;
+    dout(10) << __func__ << " con " << con << " - already connected" << dendl;
     return;
   }
-  dout(10) << "connecting" << dendl;
+  dout(10) << __func__ << " con " << con << dendl;
   conn = con;
   will_ping = _will_ping;
   OSD::Session* sessionref(static_cast<OSD::Session*>(con->get_priv()));
@@ -386,7 +386,7 @@ void Watch::connect(ConnectionRef con, bool _will_ping)
 
 void Watch::disconnect()
 {
-  dout(10) << "disconnect" << dendl;
+  dout(10) << "disconnect (con was " << conn << ")" << dendl;
   conn = ConnectionRef();
   if (!will_ping)
     register_cb();