RED-10730: added more logs
This commit is contained in:
parent
83ccaac5bb
commit
b7cc57e2bd
@ -48,6 +48,7 @@ public class FileService {
|
||||
|
||||
public JSONPrimitive<String> upload(AddFileRequest request, boolean keepManualRedactions, long size, boolean disableAutomaticAnalysis) {
|
||||
|
||||
log.info("MMMM: in file upload");
|
||||
dossierPersistenceService.getAndValidateDossier(request.getDossierId());
|
||||
|
||||
var existingStatus = retrieveStatus(request.getFileId());
|
||||
|
||||
@ -260,6 +260,7 @@ public class FileStatusService {
|
||||
|
||||
protected void addToAnalysisQueue(String dossierId, String fileId, boolean priority, Set<Integer> sectionsToReanalyse, AnalysisType analysisType) {
|
||||
|
||||
log.info("OOOO: in analysis queue");
|
||||
var dossier = dossierPersistenceService.getAndValidateDossier(dossierId);
|
||||
var fileEntity = fileStatusPersistenceService.getStatus(fileId);
|
||||
|
||||
@ -888,8 +889,11 @@ public class FileStatusService {
|
||||
@Transactional
|
||||
public void createStatus(String dossierId, String fileId, String uploader, String filename, long size, boolean disableAutomaticAnalysis) {
|
||||
|
||||
log.info("NNNN: Creating status for {}", fileId);
|
||||
fileStatusPersistenceService.createStatus(dossierId, fileId, filename, uploader, size, disableAutomaticAnalysis);
|
||||
log.info("NNNN: Websocket");
|
||||
websocketService.sendFileEvent(dossierId, fileId, FileEventType.CREATE);
|
||||
log.info("NNNN: AnalysisQueue");
|
||||
addToAnalysisQueue(dossierId, fileId, false, Set.of(), AnalysisType.DEFAULT);
|
||||
}
|
||||
|
||||
|
||||
@ -74,8 +74,9 @@ public class UploadService {
|
||||
var storageId = StorageIdUtils.getStorageId(dossierId, fileId, FileType.UNTOUCHED);
|
||||
|
||||
try {
|
||||
|
||||
log.info("MMMM: Will store object with id {} into storage {}", fileId, storageId);
|
||||
storageService.storeObject(TenantContext.getTenantId(), storageId, new ByteArrayInputStream(fileContent));
|
||||
log.info("MMMM: Uploading file");
|
||||
fileService.upload(new AddFileRequest(fileName, fileId, dossierId, KeycloakSecurity.getUserId()), keepManualRedactions, fileContent.length, disableAutomaticAnalysis);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user