Skip to content

Commit

Permalink
fix(search_family): Fix logging in ParseFieldWithAtSign (#4343)
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Bagritsevich <[email protected]>
  • Loading branch information
BagritsevichStepan authored Dec 19, 2024
1 parent 79c4a18 commit c5ef553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/search/search_family.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ std::string_view ParseFieldWithAtSign(CmdArgParser* parser) {
if (absl::StartsWith(field, "@"sv)) {
field.remove_prefix(1); // remove leading @
} else {
// Temporary warning until we can throw an error
LOG(WARNING) << "bad arguments: Field name '" << field << "' should start with '@'. '@" << field
<< "' is expected";
// Temporary warning until we can throw an error. Log every 30 seconds
LOG_EVERY_T(WARNING, 30) << "bad arguments: Field name '" << field
<< "' should start with '@'. '@" << field << "' is expected";
}
return field;
}
Expand Down

0 comments on commit c5ef553

Please sign in to comment.