Skip to content

Commit 863b051

Browse files
committed
[FLINK-38308] Reduce logging of date parse errors in DateTimeUtils
1 parent f4bdad4 commit 863b051

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ public static String formatTimestampStringWithOffset(
800800

801801
return toFormatter.format(date);
802802
} catch (ParseException e) {
803-
LOG.error(
803+
LOG.debug(
804804
"Exception when formatting: '"
805805
+ dateStr
806806
+ "' from: '"
@@ -809,8 +809,7 @@ public static String formatTimestampStringWithOffset(
809809
+ toFormat
810810
+ "' with offsetMills: '"
811811
+ offsetMills
812-
+ "'",
813-
e);
812+
+ "'");
814813
return null;
815814
}
816815
}
@@ -1011,11 +1010,10 @@ private static long internalParseTimestampMillis(String dateStr, String format,
10111010
Date date = formatter.parse(dateStr);
10121011
return date.getTime();
10131012
} catch (ParseException e) {
1014-
LOG.error(
1013+
LOG.debug(
10151014
String.format(
10161015
"Exception when parsing datetime string '%s' in format '%s'",
1017-
dateStr, format),
1018-
e);
1016+
dateStr, format));
10191017
return Long.MIN_VALUE;
10201018
}
10211019
}

0 commit comments

Comments
 (0)