Updating the extraction logging with the correct logging levels
@@ -115,33 +115,28 @@ public class ExtractionSummaryReporter {
private void printDirectories(final List<ExtractionSummaryData> data) {
logger.info("");
logger.info("");
- info(ReportConstants.HEADING);
- info("Extraction results:");
- info(ReportConstants.HEADING);
+ logger.info(ReportConstants.HEADING);
+ logger.info("Extraction results:");
+ logger.info(ReportConstants.HEADING);
data.stream().forEach(it -> {
if (it.applicable > 0) {
- info(it.directory);
- info("\tCode locations: " + it.codeLocationsExtracted);
- it.codeLocationNames.stream().forEach(name -> info("\t\t" + name));
+ logger.info(it.directory);
+ logger.info("\tCode locations: " + it.codeLocationsExtracted);
+ it.codeLocationNames.stream().forEach(name -> logger.info("\t\t" + name));
if (it.success.size() > 0) {
- info("\tSuccess: " + it.success.stream().map(success -> success.strategy.getDescriptiveName()).collect(Collectors.joining(",")));
+ logger.info("\tSuccess: " + it.success.stream().map(success -> success.strategy.getDescriptiveName()).collect(Collectors.joining(",")));
}
if (it.failed.size() > 0) {
- info("\tFailure: " + it.failed.stream().map(failed -> failed.strategy.getDescriptiveName()).collect(Collectors.joining(",")));
+ logger.error("\tFailure: " + it.failed.stream().map(failed -> failed.strategy.getDescriptiveName()).collect(Collectors.joining(",")));
}
if (it.exception.size() > 0) {
- info("\tException: " + it.exception.stream().map(exception -> exception.strategy.getDescriptiveName()).collect(Collectors.joining(",")));
+ logger.error("\tException: " + it.exception.stream().map(exception -> exception.strategy.getDescriptiveName()).collect(Collectors.joining(",")));
}
}
});
- info(ReportConstants.HEADING);
+ logger.info(ReportConstants.HEADING);
logger.info("");
logger.info("");
}
- private void info(final String line) {
- logger.info(line);
- }
-
-
}
