From 8a4c2e67f783269564215e72eca95e86cd1fe83f Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 9 Jan 2023 03:45:48 +0000 Subject: [PATCH] Change log level of OB_SIZE_OVERFLOW in function datetime_to_str --- deps/oblib/src/lib/timezone/ob_time_convert.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deps/oblib/src/lib/timezone/ob_time_convert.cpp b/deps/oblib/src/lib/timezone/ob_time_convert.cpp index 88d47c8e72..4baf006bee 100644 --- a/deps/oblib/src/lib/timezone/ob_time_convert.cpp +++ b/deps/oblib/src/lib/timezone/ob_time_convert.cpp @@ -891,7 +891,11 @@ int ObTimeConverter::datetime_to_str(int64_t value, const ObTimeZoneInfo *tz_inf LOG_WARN("failed to convert seconds to ob time", K(ret)); } else if (nls_format.empty()) { if (OB_FAIL(ob_time_to_str(ob_time, DT_TYPE_DATETIME, scale, buf, buf_len, pos, with_delim))) { - LOG_WARN("failed to convert ob time to string", K(ret)); + if (OB_SIZE_OVERFLOW == ret) { + LOG_TRACE("failed to convert ob time to string", K(ret)); + } else { + LOG_WARN("failed to convert ob time to string", K(ret)); + } } } else { if (OB_FAIL(ob_time_to_str_oracle_dfm(ob_time, scale, nls_format, buf, buf_len, pos))) {