From 03442ec2e3428b7b87bd16c99239afc4633d2f0d Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Wed, 3 Apr 2024 12:00:32 -0300 Subject: [PATCH] add logging --- .../main/java/com/levio/awsdemo/formrequestprocessor/App.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lambdas/FormProcessor/FormRequestProcessorFunction/src/main/java/com/levio/awsdemo/formrequestprocessor/App.java b/lambdas/FormProcessor/FormRequestProcessorFunction/src/main/java/com/levio/awsdemo/formrequestprocessor/App.java index 1eb3819..cb5517e 100644 --- a/lambdas/FormProcessor/FormRequestProcessorFunction/src/main/java/com/levio/awsdemo/formrequestprocessor/App.java +++ b/lambdas/FormProcessor/FormRequestProcessorFunction/src/main/java/com/levio/awsdemo/formrequestprocessor/App.java @@ -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) {