From 69239d6d21165b021eff8ad250872f9a8baf9876 Mon Sep 17 00:00:00 2001 From: wangxinyu Date: Wed, 1 Sep 2021 15:17:32 +0800 Subject: [PATCH] msg: Add target_addr to log message when connections timed out Add target_addr to log message when connections timed out. It will be helpful for problem location. Signed-off-by: wangxinyu --- src/msg/async/AsyncConnection.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 5769c580e0742..e916d26aefe1f 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -764,7 +764,8 @@ void AsyncConnection::tick(uint64_t id) (now - last_connect_started).count()) { ldout(async_msgr->cct, 1) << __func__ << " see no progress in more than " << connect_timeout_us - << " us during connecting, fault." + << " us during connecting to " + << target_addr << ", fault." << dendl; protocol->fault(); } else { -- 2.39.5