Skip to content

Commit

Permalink
fix: add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed May 3, 2024
1 parent 69b5a6b commit 8b49e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public Response exportGenerationsResults(
private Response prepareExecutionResultResponse(List<Report> reports) {
try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
ZipOutputStream zos = new ZipOutputStream(baos)) {

System.out.println("Found reports: " + reports.size());
for (Report report : reports) {
createZipEntry(zos, report);
}
Expand All @@ -490,6 +490,7 @@ private void createZipEntry(ZipOutputStream zos, Report report) throws IOExcepti
StringWriter sw = new StringWriter();
CSVWriter csvWriter = new CSVWriter(sw, ',', CSVWriter.DEFAULT_QUOTE_CHARACTER, CSVWriter.DEFAULT_ESCAPE_CHARACTER);
csvWriter.writeAll(report.header);
System.out.println("Writing report " + report.getResultArray());
csvWriter.writeAll(report.getResultArray());
csvWriter.flush();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ private ZipFile getZipFile(Long id, ParamItem paramItem) throws IOException {
for (String line : lines) {
System.out.println(line);
}
System.out.println("End of File Contents.");
} catch (IOException e) {
System.out.println("Error reading file.");
e.printStackTrace();
Expand Down

0 comments on commit 8b49e90

Please sign in to comment.