chore(server-family): do not log SETINFO (#2065)

* chore(server-family): do not log SETINFO

* address gh comments
This commit is contained in:
Kostas Kyrimis 2023-10-25 18:15:00 +03:00 committed by GitHub
parent 254fb2dd5a
commit 67b8908805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1191,6 +1191,10 @@ void ServerFamily::Client(CmdArgList args, ConnectionContext* cntx) {
return (*cntx)->SendBulkString(result);
}
if (sub_cmd == "SETINFO") {
return (*cntx)->SendOk();
}
LOG_FIRST_N(ERROR, 10) << "Subcommand " << sub_cmd << " not supported";
return (*cntx)->SendError(UnknownSubCmd(sub_cmd, "CLIENT"), kSyntaxErrType);
}