You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/02/01 05:38:19 UTC
(doris) branch master updated: [Fix](json) avoid print warn log when parse failed (#30656)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 417108d4cb8 [Fix](json) avoid print warn log when parse failed (#30656)
417108d4cb8 is described below
commit 417108d4cb85b62d108f818b7f5c60837da55160
Author: lihangyu <15...@163.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org