Skip to content

Commit

Permalink
Update ClickHouseSinkTask.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Paultagoras committed Feb 10, 2025
1 parent cd1a080 commit 9039ae2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public void put(Collection<SinkRecord> records) {
long putStat = System.currentTimeMillis();
this.proxySinkTask.put(records);
long putEnd = System.currentTimeMillis();
LOGGER.info("Put records: {} in {} ms", records.size(), putEnd - putStat);
if (!records.isEmpty()) {
LOGGER.info("Put records: {} in {} ms", records.size(), putEnd - putStat);
}
} catch (Exception e) {
LOGGER.trace("Passing the exception to the exception handler.");
boolean errorTolerance = clickHouseSinkConfig != null && clickHouseSinkConfig.isErrorsTolerance();
Expand Down

0 comments on commit 9039ae2

Please sign in to comment.