diff --git a/src/main/java/carbonneutral/academy/api/controller/user/UserController.java b/src/main/java/carbonneutral/academy/api/controller/user/UserController.java index 0c3d793..f9c9cac 100644 --- a/src/main/java/carbonneutral/academy/api/controller/user/UserController.java +++ b/src/main/java/carbonneutral/academy/api/controller/user/UserController.java @@ -42,6 +42,7 @@ public BaseResponse mypage(@AuthenticationPrincipal User user) { @PatchMapping("/my-page/edit") @Operation(summary = "마이페이지 수정 API", description = "마이페이지를 수정합니다.") public BaseResponse mypageEdit(@AuthenticationPrincipal User user, @Validated @RequestBody PatchInfoReq request) { + log.info("request : {}", request.getEditNickname()); return BaseResponse.of(MYPAGE_EDIT_OK, userService.mypageEdit(user, request)); } } diff --git a/src/main/java/carbonneutral/academy/api/service/user/UserServiceImpl.java b/src/main/java/carbonneutral/academy/api/service/user/UserServiceImpl.java index 5e8706e..29291db 100644 --- a/src/main/java/carbonneutral/academy/api/service/user/UserServiceImpl.java +++ b/src/main/java/carbonneutral/academy/api/service/user/UserServiceImpl.java @@ -65,6 +65,7 @@ public GetMyPageRes mypage(User user) { public PatchInfoRes mypageEdit(User user, PatchInfoReq request) { user.updateInfo(request); User updateUser = userJpaRepository.save(user); + log.info("updateUser : {}", updateUser.getId()); return UserConverter.toPatchInfoRes(updateUser); }