Skip to content

Commit

Permalink
[FIX] 회원가입 로깅 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkim817 committed Jul 26, 2024
1 parent d7e2129 commit 0950242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.List;

public record MemberJoinRequest(
@NotBlank(message = "role 공백일 수 없습니다.")
@NotBlank(message = "role은 공백일 수 없습니다.")
String role,
Boolean isSubscribed,
String nickname,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public void validNickname(final NicknameRequest nicknameRequest) {
public MemberJoinResponse patchMemberJoin(MemberJoinRequest memberJoinRequest) {
Member member = memberRepository.findMemberByIdOrThrow(principalHandler.getUserIdFromPrincipal());

log.info(String.valueOf(memberJoinRequest));
log.info("영속성 컨텍스트에 포함되어 있나요(업데이트 이전)? " + entityManager.contains(member));

member.updateMember(
Expand Down

0 comments on commit 0950242

Please sign in to comment.