Skip to content

Commit e5a0a97

Browse files
fix(server_family): Remove redundant logging in the CLIENT command (#4859)
refactor: address comments Signed-off-by: Stepan Bagritsevich <[email protected]>
1 parent ca4135e commit e5a0a97

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/server/server_family.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,6 @@ void ServerFamily::Client(CmdArgList args, const CommandContext& cmd_cntx) {
19991999
return ClientHelp(builder);
20002000
}
20012001

2002-
LOG_FIRST_N(ERROR, 10) << "Subcommand " << sub_cmd << " not supported";
20032002
return builder->SendError(UnknownSubCmd(sub_cmd, "CLIENT"), kSyntaxErrType);
20042003
}
20052004

@@ -3252,8 +3251,7 @@ void ServerFamily::Latency(CmdArgList args, const CommandContext& cmd_cntx) {
32523251
return rb->SendEmptyArray();
32533252
}
32543253

3255-
LOG_FIRST_N(ERROR, 10) << "Subcommand " << sub_cmd << " not supported";
3256-
rb->SendError(kSyntaxErr);
3254+
return rb->SendError(UnknownSubCmd(sub_cmd, "LATENCY"), kSyntaxErrType);
32573255
}
32583256

32593257
void ServerFamily::ShutdownCmd(CmdArgList args, const CommandContext& cmd_cntx) {

0 commit comments

Comments
 (0)