Skip to content

Commit

Permalink
[fix #191] 임시 로그 문법 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dudxo committed Jan 14, 2025
1 parent d20cca4 commit 134d913
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
Authentication authentication) throws IOException {

CustomOauth2User customOauth2User = (CustomOauth2User)authentication.getPrincipal();
log.error("CustomOauth2User = ", customOauth2User.getEmail());
log.error("CustomOauth2User = {}", customOauth2User.getEmail());

String socialEmail = customOauth2User.getEmail();
Member findmember = memberRepository.findBySocialEmail(socialEmail)
.orElseThrow(() -> new NotFoundException(MemberErrorCode.NOT_FOUND_MEMBER));

log.error("findmember = ", findmember.toString());
log.error("findmember = {}", findmember.toString());

String token = tokenProvider.generateAccessToken(findmember, customOauth2User, new Date());
tokenProvider.generateRefreshToken(findmember, customOauth2User, new Date());

log.error("token = ", token);
log.error("token = {}", token);
response.addCookie(cookieUtil.createCookie(token));
log.error("response = ", response.getHeader("Set-Cookie"));
log.error("response = {}", response.getHeader("Set-Cookie"));

if (isRoleGuest(findmember.getRole())) {
response.sendRedirect(REDIRECTION_SIGNUP);
Expand Down

0 comments on commit 134d913

Please sign in to comment.