Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Balcaen committed Apr 3, 2024
1 parent 8001181 commit 03442ec
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ private String getS3ObjectContent(String key) {

try {
if (isPDF) {
System.out.print("is PDF");
final var file = s3Service.getObjectAsFile(key);
return PDF.generateTextFromPDF(file);
} else {
System.out.print("is other file extension");
return s3Service.getObjectAsString(key);
}
} catch(IOException e) {
Expand Down

0 comments on commit 03442ec

Please sign in to comment.