From b65e3a7cbadeee5bc47e859d1bb3da891d800917 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Sun, 9 Jul 2023 16:29:36 -0700 Subject: [PATCH] skip logging of debug message for for each CSV file row logging the number of columns for each row in a large CSV file if it is the same number as the number of header columns for debugging purposes is not useful and can bloat the debug log, making it harder to troubleshoot issues. --- .../com/salesforce/dataloader/dao/csv/CSVFileReader.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileReader.java b/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileReader.java index 36e60ceb..56484ae0 100644 --- a/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileReader.java +++ b/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileReader.java @@ -196,12 +196,6 @@ record = csvReader.nextRecord(); String errMsg = Messages.getFormattedString("CSVFileDAO.errorRowTooSmall", new String[]{ String.valueOf(currentRowNumber), String.valueOf(record.size()), String.valueOf(headerRow.size())}); throw new DataAccessRowException(errMsg); - } else { - LOGGER.debug(Messages.getFormattedString("CSVFileDAO.debugMessageRowSize", - new String[] { - String.valueOf(currentRowNumber), String.valueOf(record.size()) - } - )); } Row row = new Row(record.size());