diff --git a/BackEnd/src/main/java/springwebsocket/webchat/member/controller/MemberController.java b/BackEnd/src/main/java/springwebsocket/webchat/member/controller/MemberController.java index c717774..71cb8aa 100644 --- a/BackEnd/src/main/java/springwebsocket/webchat/member/controller/MemberController.java +++ b/BackEnd/src/main/java/springwebsocket/webchat/member/controller/MemberController.java @@ -60,6 +60,7 @@ public ApiResponse delete(@RequestBody EmailPasswordRequest request) { @PostMapping("/login") public ApiResponse login(@RequestBody LoginRequest request) { + log.info("controller login ={}",request.toString()); TokenMessage message = userService.login(request); return ApiResponse.createSuccess(message); } diff --git a/BackEnd/src/main/java/springwebsocket/webchat/member/service/MemberServiceImpl.java b/BackEnd/src/main/java/springwebsocket/webchat/member/service/MemberServiceImpl.java index a625c06..dd7fadf 100644 --- a/BackEnd/src/main/java/springwebsocket/webchat/member/service/MemberServiceImpl.java +++ b/BackEnd/src/main/java/springwebsocket/webchat/member/service/MemberServiceImpl.java @@ -134,6 +134,7 @@ public TokenMessage login(LoginRequest request) { Optional user = memberRepository.findByLoginEmail(request.getEmail()) .filter(m -> bCryptPasswordEncoder.matches(request.getPassword(), m.getPassword())); + log.info("service login ={}",request.toString()); if (!user.isEmpty()) { Member member = user.get(); member.setFirebaseToken(request.getFCMToken());