Skip to content

Commit

Permalink
fix: add test file contents to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed May 3, 2024
1 parent 58e9774 commit 69b5a6b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.sql.SQLException;
import java.util.*;

Expand Down Expand Up @@ -207,6 +208,16 @@ private ZipFile getZipFile(Long id, ParamItem paramItem) throws IOException {
}
System.out.println("BAOS Size: " + baos.size());
System.out.println("Temporary File Size: " + tempFile.length());
try {
List<String> lines = Files.readAllLines(Paths.get(tempFile.getAbsolutePath()));
System.out.println("File Contents:");
for (String line : lines) {
System.out.println(line);
}
} catch (IOException e) {
System.out.println("Error reading file.");
e.printStackTrace();
}

return new ZipFile(tempFile);
}
Expand Down

0 comments on commit 69b5a6b

Please sign in to comment.