From 6946820e56667765f5f1a0d3ec2c7671fa85a6b5 Mon Sep 17 00:00:00 2001 From: Stepan Bagritsevich <43710058+BagritsevichStepan@users.noreply.github.com> Date: Tue, 24 Dec 2024 13:04:20 +0400 Subject: [PATCH] fix(json_family): Remove std::endl during logging in ParseJsonPath method (#4363) Signed-off-by: Stepan Bagritsevich --- src/server/json_family.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/json_family.cc b/src/server/json_family.cc index 050090440b22..19172d503972 100644 --- a/src/server/json_family.cc +++ b/src/server/json_family.cc @@ -97,7 +97,7 @@ ParseResult 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 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};