Skip to content

Commit 8eb7952

Browse files
committed
[!HOTFIX] 회원가입 오류확인용 로그작성
1 parent 06b2ba4 commit 8eb7952

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

q-admin/src/main/java/com/qcard/resolver/AuthAccountArgumentResolver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer m
3030
assert authAccountAnnotation != null;
3131

3232
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
33+
log.info("[SIGNUP-AUTH] Authentication: " + authentication.getPrincipal());
3334

3435
if (authentication.getPrincipal() == "anonymousUser") {
3536
return null;

q-api/src/main/java/com/qcard/api/account/controller/AccountController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class AccountController {
2525

2626
@PostMapping("/signup")
2727
public ResponseEntity<SignUpRes> signUp(@Valid @RequestBody AccountReq accountReq) {
28+
log.info("[SIGNUP-CONTROLLER] Request: " + accountReq);
29+
2830
SignUpRes response = accountService.signUp(accountReq);
2931
return new ResponseEntity<>(response, HttpStatus.OK);
3032
}

q-api/src/main/java/com/qcard/api/account/service/AccountService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public class AccountService {
2020
private final RedisService redisService;
2121

2222
public SignUpRes signUp(AccountReq accountReq) {
23+
log.info("[SIGNUP-SERVICE] Request: " + accountReq);
24+
2325
if (!accountReq.isValid()) {
2426
throw new IllegalArgumentException("사용자에 대한 올바른 정보를 입력해주세요.");
2527
}
@@ -31,6 +33,7 @@ else if(accountDomainService.existsAccountByEmail(accountReq.getEmail())){
3133
accountReq.getEmail(),
3234
accountReq.getName(),
3335
jwtService.encryptPassword(accountReq.getPassword()));
36+
3437
return new SignUpRes(newAccount.getName());
3538
}
3639

0 commit comments

Comments
 (0)