From eef1de33fd5f3f91805ecb4a12816074fc2b3abb Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Mon, 2 Sep 2024 18:13:16 +0300 Subject: [PATCH] chore: improve debug logs in dragonfly_connection (#3624) Adresses #3623 Signed-off-by: Roman Gershman Co-authored-by: adiholden --- src/facade/dragonfly_connection.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/facade/dragonfly_connection.cc b/src/facade/dragonfly_connection.cc index 9add861b04ee..685771367d84 100644 --- a/src/facade/dragonfly_connection.cc +++ b/src/facade/dragonfly_connection.cc @@ -584,7 +584,7 @@ void Connection::OnPreMigrateThread() { } void Connection::OnPostMigrateThread() { - DVLOG(1) << "OnPostMigrateThread " << GetClientId(); + DVLOG(1) << "[" << id_ << "] OnPostMigrateThread"; // Once we migrated, we should rearm OnBreakCb callback. if (breaker_cb_ && socket()->IsOpen()) { @@ -1145,7 +1145,7 @@ void Connection::OnBreakCb(int32_t mask) { return; } - DCHECK(cc_->reply_builder()); + DCHECK(cc_->reply_builder()) << "[" << id_ << "] " << phase_ << " " << migration_in_process_; VLOG(1) << "[" << id_ << "] Got event " << mask << " " << phase_ << " " << cc_->reply_builder()->IsSendActive() << " " << cc_->reply_builder()->GetError();