MoreLogs
This commit is contained in:
parent
23799a9b71
commit
a46622c1b6
@ -85,14 +85,19 @@ public class RedactionStorageService {
|
|||||||
|
|
||||||
InputStreamResource inputStreamResource;
|
InputStreamResource inputStreamResource;
|
||||||
try {
|
try {
|
||||||
|
long getObjectStart = System.currentTimeMillis();
|
||||||
inputStreamResource = storageService.getObject(StorageIdUtils.getStorageId(dossierId, fileId, FileType.TEXT));
|
inputStreamResource = storageService.getObject(StorageIdUtils.getStorageId(dossierId, fileId, FileType.TEXT));
|
||||||
|
log.info("loading text took: {}", System.currentTimeMillis() - getObjectStart);
|
||||||
} catch (StorageObjectDoesNotExist e) {
|
} catch (StorageObjectDoesNotExist e) {
|
||||||
log.debug("Text not available.");
|
log.debug("Text not available.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return objectMapper.readValue(inputStreamResource.getInputStream(), Text.class);
|
long mappingStart = System.currentTimeMillis();
|
||||||
|
var mapped = objectMapper.readValue(inputStreamResource.getInputStream(), Text.class);
|
||||||
|
log.info("mapping text took: {}", System.currentTimeMillis() - mappingStart);
|
||||||
|
return mapped;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException("Could not convert Text", e);
|
throw new RuntimeException("Could not convert Text", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user