From 1f4772156cfefa9acb313c3846932fe1ab09d769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9A=A9=EC=88=98?= Date: Wed, 25 Sep 2024 00:13:38 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20API=20=EC=9A=94=EC=B2=AD=20=ED=8F=AC?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/project/controller/ProjectController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/com/worlabel/domain/project/controller/ProjectController.java b/backend/src/main/java/com/worlabel/domain/project/controller/ProjectController.java index a54ea94..5286118 100644 --- a/backend/src/main/java/com/worlabel/domain/project/controller/ProjectController.java +++ b/backend/src/main/java/com/worlabel/domain/project/controller/ProjectController.java @@ -14,6 +14,7 @@ import com.worlabel.global.exception.ErrorCode; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.servlet.http.HttpServletRequest; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -77,7 +78,11 @@ public class ProjectController { @PostMapping("/projects/{project_id}/auto") public void autoLabeling( @PathVariable("project_id") final Integer projectId, - @RequestBody final AutoModelRequest request) { + @RequestBody final AutoModelRequest request, + HttpServletRequest httpServletRequest) { + String clientIp = httpServletRequest.getRemoteAddr(); + int clientPort = httpServletRequest.getRemotePort(); + log.debug("클라이언트 IP: {}, 포트 번호: {}", clientIp, clientPort); projectService.autoLabeling(projectId, request); }