From bec2ca891a5a12dcedb87a366781acc8478b9f18 Mon Sep 17 00:00:00 2001 From: HongGit Date: Mon, 11 Nov 2024 15:22:56 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20=EB=84=A4=EC=9D=B4=EB=B2=84=20OCR=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=EA=B0=92=20=EB=A1=9C=EA=B9=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../seonyakServer/global/common/external/naver/OcrService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/sopt/seonyakServer/global/common/external/naver/OcrService.java b/src/main/java/org/sopt/seonyakServer/global/common/external/naver/OcrService.java index 36550e3..d7d0dd2 100644 --- a/src/main/java/org/sopt/seonyakServer/global/common/external/naver/OcrService.java +++ b/src/main/java/org/sopt/seonyakServer/global/common/external/naver/OcrService.java @@ -15,6 +15,7 @@ import java.util.stream.Collectors; import java.util.stream.IntStream; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.json.JSONArray; import org.json.JSONObject; import org.sopt.seonyakServer.global.common.external.naver.dto.OcrBusinessResponse; @@ -26,6 +27,7 @@ @Service @RequiredArgsConstructor +@Slf4j public class OcrService { private final OcrConfig ocrConfig; @@ -206,6 +208,7 @@ private String extractInferResult(String jsonResponse) { private String getOcrResponse(String apiUrl, String apiKey, MultipartFile file) throws IOException { String response = requestNaverOcr(apiUrl, apiKey, file); + log.info("OCR API Response: {}", response); // 네이버 OCR 실패 응답 처리 String responseResult = extractInferResult(response); if (responseResult.equals("FAILURE")) {