From 51c8ffff6db02ff8cdde25a46b9dc7ac66452006 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 21 Jan 2021 15:27:24 +0800 Subject: [PATCH] crimson/mon: print out entity addr type when non peer address matches Signed-off-by: Kefu Chai --- src/crimson/mon/MonClient.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crimson/mon/MonClient.cc b/src/crimson/mon/MonClient.cc index 9dfbb103a38b4..7aa7b65f57861 100644 --- a/src/crimson/mon/MonClient.cc +++ b/src/crimson/mon/MonClient.cc @@ -960,7 +960,8 @@ seastar::future<> Client::reopen_session(int rank) auto peer = monmap.get_addrs(rank).pick_addr(msgr.get_myaddr().get_type()); if (peer == entity_addr_t{}) { // crimson msgr only uses the first bound addr - logger().warn("mon.{} does not have an addr compatible with me", rank); + logger().warn("mon.{} does not have an addr compatible with my type: {}", + rank, msgr.get_myaddr().get_type()); return seastar::now(); } logger().info("connecting to mon.{}", rank); -- 2.39.5