Change log level of OB_SIZE_OVERFLOW in function datetime_to_str

This commit is contained in:
obdev
2023-01-09 03:45:48 +00:00
committed by ob-robot
parent 8214021920
commit 8a4c2e67f7

View File

@ -891,8 +891,12 @@ 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))) {
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))) {
LOG_WARN("failed to convert ob time to string", K(ob_time), K(nls_format), K(buf_len), K(pos), K(ret), KCSTRING(lbt()));