Skip to content

Commit

Permalink
MDEXP-625 Added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
obozhko-folio committed Sep 4, 2023
1 parent 01db7a4 commit 53fbaa4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ private void checkDuplicates(List<JsonObject> underlyingMarcRecords, String jobE
format(ERROR_DUPLICATE_SRS_RECORD.getDescription(), instanceId),
ERROR_DUPLICATE_SRS_RECORD.getCode(), jobExecutionId, params);
exportPayload.setDuplicatedSrs(exportPayload.getDuplicatedSrs() + 1);
LOGGER.info("Duplicate SRS record found of instance ID {}, total duplicated SRS {}", instanceId,
exportPayload.getDuplicatedSrs());
} else {
instanceIds.add(instanceId);
}
Expand Down Expand Up @@ -149,6 +151,7 @@ public InventoryRecordConverterService getInventoryRecordService() {

public void handleFailedRecords(ExportPayload exportPayload, List<String> identifiers) {
var numFailedRecords = identifiers.size() - exportPayload.getExportedRecordsNumber();
LOGGER.debug("Number of failed records found: {]", numFailedRecords);
exportPayload.setFailedRecordsNumber(Math.abs(numFailedRecords));
}

Expand Down

0 comments on commit 53fbaa4

Please sign in to comment.