This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 92411c7f2c7 [Fix](json) avoid print warn log when parse failed
(#30656) (#30710)
92411c7f2c7 is described below
commit 92411c7f2c7f70b2fd0b268c11b8941c72e872c1
Author: lihangyu <[email protected]>
AuthorDate: Sat Feb 3 20:20:50 2024 +0800
[Fix](json) avoid print warn log when parse failed (#30656) (#30710)
---
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]