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")) {