Pull request #197: some logs
Merge in RED/redaction-service from RED-1839 to master * commit 'da14646cb7d8057c8189736565a024ef13921502': some logs
This commit is contained in:
commit
d5bb55166d
@ -165,6 +165,7 @@ public class RedactionController implements RedactionResource {
|
|||||||
|
|
||||||
var redactionLog = redactionStorageService.getRedactionLog(redactionRequest.getDossierId(), redactionRequest.getFileId());
|
var redactionLog = redactionStorageService.getRedactionLog(redactionRequest.getDossierId(), redactionRequest.getFileId());
|
||||||
|
|
||||||
|
log.info("Loaded redaction log with computationalVersion: {}",redactionLog.getComputationalVersion());
|
||||||
if (redactionLog.getComputationalVersion() == 0) {
|
if (redactionLog.getComputationalVersion() == 0) {
|
||||||
// old redaction logs are returned directly
|
// old redaction logs are returned directly
|
||||||
return redactionLog;
|
return redactionLog;
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.iqser.red.service.redaction.v1.server.redaction.service;
|
|||||||
|
|
||||||
import com.iqser.red.service.redaction.v1.model.*;
|
import com.iqser.red.service.redaction.v1.model.*;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -9,6 +10,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class RedactionLogMergeService {
|
public class RedactionLogMergeService {
|
||||||
@ -18,6 +20,7 @@ public class RedactionLogMergeService {
|
|||||||
|
|
||||||
public RedactionLog mergeRedactionLogData(RedactionLog redactionLog, String dossierTemplateId, ManualRedactions manualRedactions) {
|
public RedactionLog mergeRedactionLogData(RedactionLog redactionLog, String dossierTemplateId, ManualRedactions manualRedactions) {
|
||||||
|
|
||||||
|
log.info("Merging Redaction log with manual redactions ");
|
||||||
if (manualRedactions != null) {
|
if (manualRedactions != null) {
|
||||||
|
|
||||||
var manualRedactionLogEntries = addManualAddEntries(manualRedactions.getEntriesToAdd(), manualRedactions.getComments(), dossierTemplateId);
|
var manualRedactionLogEntries = addManualAddEntries(manualRedactions.getEntriesToAdd(), manualRedactions.getComments(), dossierTemplateId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user