]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async: add con_mode to debug lines
authorSage Weil <sage@redhat.com>
Mon, 18 Feb 2019 19:43:31 +0000 (13:43 -0600)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 21 Feb 2019 22:31:02 +0000 (23:31 +0100)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/AsyncConnection.cc
src/msg/async/ProtocolV2.cc

index b4763f138c7f01c49911638802b3f69596c5f2b6..91ea1f6c82786b03039ae13ffce927158fb810f2 100644 (file)
@@ -40,6 +40,7 @@ ostream& AsyncConnection::_conn_prefix(std::ostream *_dout) {
                << *peer_addrs << " conn(" << this
                << (msgr2 ? " msgr2=" : " legacy=")
                << protocol.get()
+               << " " << ceph_con_mode_name(protocol->auth_meta->con_mode)
                 << " :" << port
                 << " s=" << get_state_name(state)
                 << " l=" << policy.lossy
index c823537500b7b89e29366cb1eea2b55effd8bc64..c4ec5017433cab04828eab4a625b877bcd66fc65 100644 (file)
@@ -19,7 +19,9 @@
 ostream &ProtocolV2::_conn_prefix(std::ostream *_dout) {
   return *_dout << "--2- " << messenger->get_myaddrs() << " >> "
                 << *connection->peer_addrs << " conn(" << connection << " "
-                << this << " :" << connection->port
+                << this
+               << " " << ceph_con_mode_name(auth_meta->con_mode)
+               << " :" << connection->port
                 << " s=" << get_state_name(state) << " pgs=" << peer_global_seq
                 << " cs=" << connect_seq << " l=" << connection->policy.lossy
                 << " rx=" << session_stream_handlers.rx.get()