Skip to content

Commit

Permalink
chore: improve debug logs in dragonfly_connection (#3624)
Browse files Browse the repository at this point in the history
Adresses #3623

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
Co-authored-by: adiholden <adi@dragonflydb.io>
  • Loading branch information
romange and adiholden authored Sep 2, 2024
1 parent 959b96e commit eef1de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/facade/dragonfly_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit eef1de3

Please sign in to comment.