dbf-exporter оставлять временные файлы (в папке export-dbf-service.store.local-temp-dir)

This commit is contained in:
AKurakin 2023-09-27 11:06:52 +03:00
parent f467b1062b
commit 81456f3d2e

View file

@ -53,12 +53,14 @@ public class Journal extends Stage implements InitializingBean {
//удалим временный файл
File dbfFile = resultContainer.getFileForExport();
try {
log.debug("Uuid {}, delete tem file \"{}\"", resultContainer.getUuid(), dbfFile);
Files.deleteIfExists(dbfFile.toPath());
} catch (IOException e) {
throw new RuntimeException(e);
}
// try {
// log.debug("Uuid {}, delete temp file \"{}\"", resultContainer.getUuid(), dbfFile);
// Files.deleteIfExists(dbfFile.toPath());
// } catch (IOException e) {
// throw new RuntimeException(e);
// }
// Надо сохранять для разбора истории и отладки по логам
log.debug("Uuid {}, save temp file \"{}\"", resultContainer.getUuid(), dbfFile);
return StageResult.COMPLETE;
}