RED-7241: added many log files to debug strange behaviour
This commit is contained in:
parent
7bb42d5131
commit
0835bf50be
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user