Skip to content

Commit

Permalink
refactor(json_family): Change LOG(WARNING) to VLOG(2)
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Bagritsevich <[email protected]>
  • Loading branch information
BagritsevichStepan committed Jul 9, 2024
1 parent 2fde119 commit 3834e5e
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 @@ -1449,14 +1449,14 @@ io::Result<JsonPathV2, string> ParsePathV2(string_view path) {
if (absl::GetFlag(FLAGS_jsonpathv2)) {
auto path_result = json::ParsePath(path);
if (!path_result) {
LOG(WARNING) << "Invalid Json path: " << path << ' ' << path_result.error() << std::endl;
VLOG(2) << "Invalid Json path: " << path << ' ' << path_result.error() << std::endl;
return nonstd::make_unexpected(kSyntaxErr);
}
return path_result;
}
io::Result<JsonExpression> expr_result = ParseJsonPath(path);
if (!expr_result) {
LOG(WARNING) << "Invalid Json path: " << path << ' ' << expr_result.error() << std::endl;
VLOG(2) << "Invalid Json path: " << path << ' ' << expr_result.error() << std::endl;
return nonstd::make_unexpected(kSyntaxErr);
}
return JsonPathV2(std::move(expr_result.value()));
Expand Down

0 comments on commit 3834e5e

Please sign in to comment.