fix(json_family): Remove std::endl during logging in ParseJsonPath method (#4363)

Signed-off-by: Stepan Bagritsevich <stefan@dragonflydb.io>
This commit is contained in:
Stepan Bagritsevich 2024-12-24 13:04:20 +04:00 committed by GitHub
parent dc81594cd5
commit 6946820e56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ ParseResult<WrappedJsonPath> ParseJsonPath(StringOrView path, JsonPathType path_
if (absl::GetFlag(FLAGS_jsonpathv2)) {
auto path_result = json::ParsePath(path.view());
if (!path_result) {
VLOG(1) << "Invalid Json path: " << path << ' ' << path_result.error() << std::endl;
VLOG(1) << "Invalid Json path: " << path << ' ' << path_result.error();
return nonstd::make_unexpected(kSyntaxErr);
}
return WrappedJsonPath{std::move(path_result).value(), std::move(path), path_type};
@ -105,7 +105,7 @@ ParseResult<WrappedJsonPath> ParseJsonPath(StringOrView path, JsonPathType path_
auto expr_result = ParseJsonPathAsExpression(path.view());
if (!expr_result) {
VLOG(1) << "Invalid Json path: " << path << ' ' << expr_result.error() << std::endl;
VLOG(1) << "Invalid Json path: " << path << ' ' << expr_result.error();
return nonstd::make_unexpected(kSyntaxErr);
}
return WrappedJsonPath{std::move(expr_result).value(), std::move(path), path_type};