Skip to content

Commit

Permalink
fix(json_family): Remove std::endl during logging in ParseJsonPath me…
Browse files Browse the repository at this point in the history
…thod (#4363)

Signed-off-by: Stepan Bagritsevich <[email protected]>
  • Loading branch information
BagritsevichStepan authored Dec 24, 2024
1 parent dc81594 commit 6946820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/json_family.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ 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};
}

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};
Expand Down

0 comments on commit 6946820

Please sign in to comment.