Skip to content

Commit

Permalink
More debugging added
Browse files Browse the repository at this point in the history
  • Loading branch information
arybakov-cgi committed Nov 28, 2023
1 parent 742e5bf commit 6b169d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import io.github.resilience4j.retry.annotation.Retry;
import jakarta.transaction.Transactional;
import org.apache.commons.collections4.ListUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -27,6 +26,7 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.util.*;
import java.util.concurrent.CompletableFuture;

Expand Down Expand Up @@ -371,7 +371,7 @@ private void saveBinaryResponseToFile(byte[] resultBinary, String reportFile) th
boolean isDeleted = fileToSave.delete();
logger.debug("{} to delete existing PDF {}", isDeleted, reportFile);
}
FileUtils.writeByteArrayToFile(fileToSave, resultBinary);
Files.write(fileToSave.toPath(), resultBinary);
logger.debug("PDF {} saved successfully", pathToFile);
}
}
Expand Down

0 comments on commit 6b169d0

Please sign in to comment.