From 2a8f9409396676146045f6c3bdb15a9a3420898e Mon Sep 17 00:00:00 2001 From: ch8930 Date: Wed, 7 Aug 2024 21:44:35 +0900 Subject: [PATCH] =?UTF-8?q?!bug:=20userId=EA=B0=80=20=EA=B0=80=EC=A0=B8?= =?UTF-8?q?=EC=99=80=EC=A7=80=EB=8A=94=EC=A7=80=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EB=A1=9C=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/twentythree/peech/user/controller/UserController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/twentythree/peech/user/controller/UserController.java b/src/main/java/com/twentythree/peech/user/controller/UserController.java index ea42bd85..c9d131f2 100644 --- a/src/main/java/com/twentythree/peech/user/controller/UserController.java +++ b/src/main/java/com/twentythree/peech/user/controller/UserController.java @@ -15,6 +15,8 @@ import com.twentythree.peech.user.service.UserService; import io.swagger.v3.oas.annotations.Operation; import lombok.RequiredArgsConstructor; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.http.ResponseEntity; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; @@ -31,6 +33,7 @@ public class UserController implements SwaggerUserController{ private final UserService userService; private final UserMapper userMapper; private final UserFetcher userFetcher; + private final Logger log = LoggerFactory.getLogger(UserController.class); @Operation(summary = "유저 가입", description = "deviceId를 RequestBody에 담아 요청하면 새로운 유저를 생성하고 생성된 UserId를 응답한다.") @@ -65,6 +68,7 @@ public ResponseEntity completeProfile(@RequestBody Compl JWTAuthentication jwtAuthentication = (JWTAuthentication) authentication.getPrincipal(); Long userId = jwtAuthentication.getUserId(); + log.info("userId : {}", userId); AccessAndRefreshToken accessAndRefreshToken = userService.completeProfile(userId,request.getFirstName(), request.getLastName(), request.getNickName(), request.getBirth(), request.getGender());