From 0835bf50be8dfbb27f5420b00f1cc06b1fb52071 Mon Sep 17 00:00:00 2001 From: Ali Oezyetimoglu Date: Thu, 10 Aug 2023 12:47:25 +0200 Subject: [PATCH] RED-7241: added many log files to debug strange behaviour --- .../v1/processor/service/ManualRedactionService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/persistence-service-v1/persistence-service-processor-v1/src/main/java/com/iqser/red/service/persistence/management/v1/processor/service/ManualRedactionService.java b/persistence-service-v1/persistence-service-processor-v1/src/main/java/com/iqser/red/service/persistence/management/v1/processor/service/ManualRedactionService.java index 0ddadecd7..f6f420fa5 100644 --- a/persistence-service-v1/persistence-service-processor-v1/src/main/java/com/iqser/red/service/persistence/management/v1/processor/service/ManualRedactionService.java +++ b/persistence-service-v1/persistence-service-processor-v1/src/main/java/com/iqser/red/service/persistence/management/v1/processor/service/ManualRedactionService.java @@ -716,13 +716,17 @@ public class ManualRedactionService { RedactionLogEntry redactionLogEntry = null; try { + log.info("Will get redaction log entry"); redactionLogEntry = getRedactionLogEntry(redactionLog, resizeRedaction.getId().getAnnotationId()); + log.info("Got redaction log entry!"); } catch (NotFoundException e) { + log.info("Oh no! Cannot get redaction log entry!"); return; } if (resizeRedaction.getUpdateDictionary() != null && resizeRedaction.getUpdateDictionary() && resizeRedaction.getStatus() .equals(AnnotationStatus.APPROVED) && (redactionLogEntry.isDictionaryEntry() || redactionLogEntry.isDossierDictionaryEntry())) { + log.info("We will update the resize redaction"); var dossier = dossierPersistenceService.findByDossierId(dossierId); var typeId = buildTypeId(redactionLogEntry, resizeRedaction, dossier); @@ -732,6 +736,7 @@ public class ManualRedactionService { boolean isShrinking = oldValue != null && oldValue.length() > newValue.length(); + log.info("isShrinking: ", isShrinking); if (isShrinking) { log.info("Remove old value '{}' from dictionary", oldValue); removeFromDictionary(typeId, oldValue, dossierId, fileId, dictionaryEntryType);