Skip to content

Commit

Permalink
skip logging of debug message for for each CSV file row
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ashitsalesforce committed Jul 9, 2023
1 parent 8e1b26b commit b65e3a7
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b65e3a7

Please sign in to comment.