Skip to content

Commit 536cbc0

Browse files
committed
로그인 확인용 로그 추가
1 parent a02b7ff commit 536cbc0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/com/matzip/auth/api/AuthController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.matzip.common.response.ApiResponse;
1616
import jakarta.validation.constraints.NotBlank;
1717
import lombok.RequiredArgsConstructor;
18+
import lombok.extern.slf4j.Slf4j;
1819
import org.springframework.http.HttpHeaders;
1920
import org.springframework.http.ResponseCookie;
2021
import org.springframework.http.ResponseEntity;
@@ -24,6 +25,7 @@
2425
import java.time.Duration;
2526

2627

28+
@Slf4j
2729
@RestController
2830
@RequestMapping("/api/v1/auth")
2931
@RequiredArgsConstructor
@@ -146,6 +148,7 @@ public ResponseEntity<Void> kakaoCallback(
146148
// 로그인 실패 (State는 정상이었으나, code가 만료되었거나 등등)
147149
// origin은 신뢰할 수 있으므로, 해당 origin의 실패 페이지로 보냄
148150
String location = origin + redirectProperties.getFailurePath() + "?error=" + e.getErrorCode().getCode();
151+
log.info(e.getMessage());
149152

150153
return ResponseEntity.status(302)
151154
.header(HttpHeaders.LOCATION, location)

0 commit comments

Comments
 (0)