fix some log messages

This commit is contained in:
Kilian Schuettler 2023-08-01 00:07:30 +02:00
parent 21e759ead1
commit 4fe01b9d28
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@
<dependency>
<groupId>com.knecon.fforesight</groupId>
<artifactId>layoutparser-service-internal-api</artifactId>
<version>0.16.0</version>
<version>0.17.0</version>
</dependency>
<dependency>

View File

@ -64,7 +64,7 @@ public class FileManagementStorageService {
try {
return storageService.readJSONObject(TenantContext.getTenantId(), StorageIdUtils.getStorageId(dossierId, fileId, FileType.REDACTION_LOG), RedactionLog.class);
} catch (StorageObjectDoesNotExist e) {
log.debug("Text not available.");
log.debug("RedactionLog does not exist");
throw new NotFoundException("RedactionLog does not exist");
}
}
@ -76,7 +76,7 @@ public class FileManagementStorageService {
return storageService.readJSONObject(TenantContext.getTenantId(), StorageIdUtils.getStorageId(dossierId, fileId, FileType.SECTION_GRID), SectionGrid.class);
} catch (StorageObjectDoesNotExist e) {
log.debug("SectionGrid not available.");
throw new NotFoundException("RedactionLog does not exist");
throw new NotFoundException("SectionGrid does not exist");
} catch (Exception e) {
throw new RuntimeException("Could not convert SectionGrid", e);
}