Skip to content

Commit

Permalink
chore : 로깅 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JunHwan Kim committed Feb 12, 2024
1 parent 8b42621 commit b5a4561
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import dnd.project.domain.user.response.UserResponse;
import dnd.project.global.common.exception.CustomException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
Expand All @@ -22,6 +23,7 @@

import static dnd.project.global.common.Result.FAIL;

@Slf4j
@Service
@RequiredArgsConstructor
public class GoogleLoginService implements OAuth2LoginService {
Expand Down Expand Up @@ -53,6 +55,7 @@ private String toRequestAccessToken(String code) {
// 발급받은 code -> POST 요청
String decode = URLDecoder.decode(code, StandardCharsets.UTF_8);

log.info("Request Token URI: {}", googleProperties.getRequestTokenUri());
ResponseEntity<GoogleTokenResponse> response = restTemplate.postForEntity(
googleProperties.getRequestTokenUri(),
googleProperties.getRequestParameter(decode),
Expand Down

0 comments on commit b5a4561

Please sign in to comment.