Skip to content

Commit c5ef553

Browse files
fix(search_family): Fix logging in ParseFieldWithAtSign (#4343)
Signed-off-by: Stepan Bagritsevich <stefan@dragonflydb.io>
1 parent 79c4a18 commit c5ef553

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/search/search_family.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ std::string_view ParseFieldWithAtSign(CmdArgParser* parser) {
207207
if (absl::StartsWith(field, "@"sv)) {
208208
field.remove_prefix(1); // remove leading @
209209
} else {
210-
// Temporary warning until we can throw an error
211-
LOG(WARNING) << "bad arguments: Field name '" << field << "' should start with '@'. '@" << field
212-
<< "' is expected";
210+
// Temporary warning until we can throw an error. Log every 30 seconds
211+
LOG_EVERY_T(WARNING, 30) << "bad arguments: Field name '" << field
212+
<< "' should start with '@'. '@" << field << "' is expected";
213213
}
214214
return field;
215215
}

0 commit comments

Comments
 (0)