Skip to content

Commit

Permalink
#Test: Add print For Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nareunhang committed Oct 31, 2024
1 parent 74152b2 commit 9fb044e
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public CommonResult deleteMember(@RequestBody MemberDeleteRequestDto deleteMembe
@GetMapping("/email") // PathVariable로 이메일을 전달
public SingleResult<MemberCredentialDTO> getMember(@RequestParam String email) {
Member findMember = memberService.getMemberByEmail(email); // Optional을 반환하지 않는다고 가정
System.out.println(email);
System.out.println(findMember.getAccess_key());
System.out.println(findMember.getSecret_key());
// System.out.println(email);
// System.out.println(findMember.getAccess_key());
// System.out.println(findMember.getSecret_key());

if (findMember != null) {
// Member 정보를 MemberCredentialDTO로 변환
Expand All @@ -58,7 +58,10 @@ public SingleResult<MemberCredentialDTO> getMember(@RequestParam String email) {
findMember.getAccess_key(),
findMember.getSecret_key()
);
return responseService.getSingleResult(memberCredentialDTO);
System.out.println(memberCredentialDTO);
SingleResult<MemberCredentialDTO> result = responseService.getSingleResult(memberCredentialDTO);
System.out.println(result); // 디버깅을 위해 결과를 출력
return result;
} else {
return (SingleResult<MemberCredentialDTO>) responseService.getFailResult();
}
Expand Down

0 comments on commit 9fb044e

Please sign in to comment.