diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/RedactionLogMergeService.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/RedactionLogMergeService.java index 7f78e87a..25d076cb 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/RedactionLogMergeService.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/redaction/service/RedactionLogMergeService.java @@ -20,13 +20,14 @@ public class RedactionLogMergeService { public RedactionLog mergeRedactionLogData(RedactionLog redactionLog, String dossierTemplateId, ManualRedactions manualRedactions) { - log.info("Merging Redaction log with manual redactions "); + log.info("Merging Redaction log with manual redactions {}", manualRedactions); if (manualRedactions != null) { var manualRedactionLogEntries = addManualAddEntries(manualRedactions.getEntriesToAdd(), manualRedactions.getComments(), dossierTemplateId); redactionLog.getRedactionLogEntry().addAll(manualRedactionLogEntries); + log.info("Adding {}", manualRedactionLogEntries); for (RedactionLogEntry entry : redactionLog.getRedactionLogEntry()) { processRedactionLogEntry(manualRedactions, dossierTemplateId, entry); entry.setComments(manualRedactions.getComments().get(entry.getId())); @@ -175,6 +176,7 @@ public class RedactionLogMergeService { RedactionLogEntry redactionLogEntry = createRedactionLogEntry(manualRedactionEntry, manualRedactionEntry.getId(), dossierTemplateId); redactionLogEntry.setPositions(manualRedactionEntry.getPositions()); redactionLogEntry.setComments(comments.get(manualRedactionEntry.getId())); + redactionLogEntries.add(redactionLogEntry); } }