Skip to content
Snippets Groups Projects
Commit aaa3ba8c authored by Krzysztof Witukiewicz's avatar Krzysztof Witukiewicz
Browse files

OZG-6223 OZG-7381 Log tmp file

parent 0cf0f44d
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,7 @@ public class ZipDownloadService { ...@@ -47,6 +47,7 @@ public class ZipDownloadService {
public OzgZipFile createZipFile(List<OzgFile> ozgFiles) { public OzgZipFile createZipFile(List<OzgFile> ozgFiles) {
var file = TempFileUtils.createTmpFile().toFile(); var file = TempFileUtils.createTmpFile().toFile();
LOG.info("Created tmp file {}", file);
try (var zipOutputStream = new ZipOutputStream(new FileOutputStream(file))) { try (var zipOutputStream = new ZipOutputStream(new FileOutputStream(file))) {
ozgFiles.forEach(ozgFile -> addOzgFileToZip(ozgFile, zipOutputStream)); ozgFiles.forEach(ozgFile -> addOzgFileToZip(ozgFile, zipOutputStream));
return new OzgZipFile(file); return new OzgZipFile(file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment