Skip to content

Commit 6946820

Browse files
fix(json_family): Remove std::endl during logging in ParseJsonPath method (#4363)
Signed-off-by: Stepan Bagritsevich <stefan@dragonflydb.io>
1 parent dc81594 commit 6946820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/json_family.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ ParseResult<WrappedJsonPath> ParseJsonPath(StringOrView path, JsonPathType path_
9797
if (absl::GetFlag(FLAGS_jsonpathv2)) {
9898
auto path_result = json::ParsePath(path.view());
9999
if (!path_result) {
100-
VLOG(1) << "Invalid Json path: " << path << ' ' << path_result.error() << std::endl;
100+
VLOG(1) << "Invalid Json path: " << path << ' ' << path_result.error();
101101
return nonstd::make_unexpected(kSyntaxErr);
102102
}
103103
return WrappedJsonPath{std::move(path_result).value(), std::move(path), path_type};
104104
}
105105

106106
auto expr_result = ParseJsonPathAsExpression(path.view());
107107
if (!expr_result) {
108-
VLOG(1) << "Invalid Json path: " << path << ' ' << expr_result.error() << std::endl;
108+
VLOG(1) << "Invalid Json path: " << path << ' ' << expr_result.error();
109109
return nonstd::make_unexpected(kSyntaxErr);
110110
}
111111
return WrappedJsonPath{std::move(expr_result).value(), std::move(path), path_type};

0 commit comments

Comments
 (0)