Skip to content

Commit

Permalink
Merge pull request #499 from ClickHouse/cleanup-chatty-logs
Browse files Browse the repository at this point in the history
Tweak log statement to reduce empty output
  • Loading branch information
Paultagoras authored Feb 10, 2025
2 parents cd1a080 + 9039ae2 commit 902d2d6
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 902d2d6

Please sign in to comment.