Skip to content

Commit 654a8eb

Browse files
authored
chore: skip arguments when logging failed auth cmd (#5820)
Signed-off-by: kostas <[email protected]>
1 parent 085e07b commit 654a8eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/server/main_service.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,10 @@ string FailedCommandToString(std::string_view command, facade::CmdArgList args,
723723
string result;
724724
absl::StrAppend(&result, " ", command);
725725

726-
for (auto arg : args) {
727-
absl::StrAppend(&result, " ", absl::CHexEscape(arg));
726+
if (command != "AUTH" && command != "ACL SETUSER") {
727+
for (auto arg : args) {
728+
absl::StrAppend(&result, " ", absl::CHexEscape(arg));
729+
}
728730
}
729731

730732
absl::StrAppend(&result, " failed with reason: ", reason);

0 commit comments

Comments
 (0)