Skip to content

Commit eaa1ced

Browse files
authored
[FLINK-38308] Reduce logging of date parse errors in DateTimeUtils
1 parent ed0ae9d commit eaa1ced

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,9 @@ public static String formatUnixTimestamp(long unixtime, String format, TimeZone
14811481
try {
14821482
return formatter.format(date);
14831483
} catch (Exception e) {
1484-
LOG.error("Exception when formatting.", e);
1484+
LOG.debug(
1485+
String.format(
1486+
"Exception when formatting date '%s' to format '%s'.", date, format));
14851487
return null;
14861488
}
14871489
}

0 commit comments

Comments
 (0)