From 3bd82834a0734969bb2eb967283e3bb7945a9aab Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 18 Feb 2019 13:43:31 -0600 Subject: [PATCH] msg/async: add con_mode to debug lines Signed-off-by: Sage Weil --- src/msg/async/AsyncConnection.cc | 1 + src/msg/async/ProtocolV2.cc | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index b4763f138c7f0..91ea1f6c82786 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -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 diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index c823537500b7b..c4ec5017433ca 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -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() -- 2.39.5