This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 90d3f0d8053cdecdc7b0f0ce643745ead5727607 Author: lihangyu <[email protected]> AuthorDate: Thu Feb 1 13:38:11 2024 +0800 [Fix](json) avoid print warn log when parse failed (#30656) --- be/src/runtime/jsonb_value.cpp | 2 +- be/src/util/jsonb_parser_simd.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/be/src/runtime/jsonb_value.cpp b/be/src/runtime/jsonb_value.cpp index 187e2696b46..e88ce3b3d74 100644 --- a/be/src/runtime/jsonb_value.cpp +++ b/be/src/runtime/jsonb_value.cpp @@ -34,7 +34,7 @@ Status JsonBinaryValue::from_json_string(const char* s, int length) { error = parser.getErrorCode(); auto msg = fmt::format("json parse error: {} for value: {}", JsonbErrMsg::getErrMsg(error), std::string_view(s, length)); - LOG(WARNING) << msg; + VLOG_DEBUG << msg; return Status::InvalidArgument(msg); } diff --git a/be/src/util/jsonb_parser_simd.h b/be/src/util/jsonb_parser_simd.h index bb2238253e8..6621912a9d0 100644 --- a/be/src/util/jsonb_parser_simd.h +++ b/be/src/util/jsonb_parser_simd.h @@ -100,7 +100,7 @@ public: if (!pch || len == 0) { err_ = JsonbErrType::E_EMPTY_DOCUMENT; - LOG(WARNING) << "empty json string"; + VLOG_DEBUG << "empty json string"; return false; } @@ -144,7 +144,7 @@ public: return err_ == JsonbErrType::E_NONE; } catch (simdjson::simdjson_error& e) { err_ = JsonbErrType::E_EXCEPTION; - LOG(WARNING) << "simdjson parse exception: " << e.what(); + VLOG_DEBUG << "simdjson parse exception: " << e.what(); return false; } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
