refactor: reduce number of cluster logs (#5044)

This commit is contained in:
Borys 2025-05-04 13:51:49 +03:00 committed by GitHub
parent d623304c39
commit 9f7b11628a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -462,12 +462,6 @@ void ClusterFamily::DflyCluster(CmdArgList args, const CommandContext& cmd_cntx)
return builder->SendError("Cluster is disabled. Use --cluster_mode=yes to enable.");
}
if (cntx->conn()) {
VLOG(2) << "Got DFLYCLUSTER command (" << cntx->conn()->GetClientId() << "): " << args;
} else {
VLOG(2) << "Got DFLYCLUSTER command (NO_CLIENT_ID): " << args;
}
string sub_cmd = absl::AsciiStrToUpper(ArgS(args, 0));
args.remove_prefix(1); // remove subcommand name
if (sub_cmd == "GETSLOTINFO") {
@ -684,6 +678,8 @@ void ClusterFamily::DflyClusterGetSlotInfo(CmdArgList args, SinkReplyBuilder* bu
}
void ClusterFamily::DflyClusterFlushSlots(CmdArgList args, SinkReplyBuilder* builder) {
LOG(INFO) << "Got DFLYCLUSTER FLUSHSLOTS " << args;
std::vector<SlotRange> slot_ranges;
CmdArgParser parser(args);