mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix(search_family): Fix logging in ParseFieldWithAtSign (#4343)
Signed-off-by: Stepan Bagritsevich <stefan@dragonflydb.io>
This commit is contained in:
parent
79c4a1809b
commit
c5ef553ffc
1 changed files with 3 additions and 3 deletions
|
@ -207,9 +207,9 @@ std::string_view ParseFieldWithAtSign(CmdArgParser* parser) {
|
||||||
if (absl::StartsWith(field, "@"sv)) {
|
if (absl::StartsWith(field, "@"sv)) {
|
||||||
field.remove_prefix(1); // remove leading @
|
field.remove_prefix(1); // remove leading @
|
||||||
} else {
|
} else {
|
||||||
// Temporary warning until we can throw an error
|
// Temporary warning until we can throw an error. Log every 30 seconds
|
||||||
LOG(WARNING) << "bad arguments: Field name '" << field << "' should start with '@'. '@" << field
|
LOG_EVERY_T(WARNING, 30) << "bad arguments: Field name '" << field
|
||||||
<< "' is expected";
|
<< "' should start with '@'. '@" << field << "' is expected";
|
||||||
}
|
}
|
||||||
return field;
|
return field;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue