Skip to content

Commit

Permalink
make debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Aug 13, 2021
1 parent 3f51f36 commit eb419c8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ public void setValues(Statistics readerStatistics, Statistics writerStatistics,
setLoadUpdateRowCount(writerStatistics.get(DataWriterStatisticConstants.UPDATECOUNT));
setLoadDeleteRowCount(writerStatistics.get(DataWriterStatisticConstants.DELETECOUNT));
setTableLoadedCount(writerStatistics.getTableStats());
for (Map.Entry<String, Map<String, Long>> entry : writerStatistics.getTableStats().entrySet()) {
for (Map.Entry<String, Long> dmlEntry : entry.getValue().entrySet()) {
log.info("Loaded table:" + entry.getKey() + ", " + dmlEntry.getKey() + ", " + dmlEntry.getValue() + " rows");
}
if (log.isDebugEnabled()) {
for (Map.Entry<String, Map<String, Long>> entry : writerStatistics.getTableStats().entrySet()) {
for (Map.Entry<String, Long> dmlEntry : entry.getValue().entrySet()) {
log.debug("Loaded table: {}, {}, {} rows" , entry.getKey(), dmlEntry.getKey(), dmlEntry.getValue());
}
}
}
}
}
Expand Down

0 comments on commit eb419c8

Please sign in to comment.