Skip to content

Commit

Permalink
fix: add log related lines for error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Dec 1, 2024
1 parent c200692 commit 5516064
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import kr.mafoo.user.util.NicknameGenerator;
import kr.mafoo.user.util.ProfileImageGenerator;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.reactive.function.client.WebClient;
Expand All @@ -33,6 +35,8 @@
@RequiredArgsConstructor
@Service
public class AuthService {

private static final Logger log = LoggerFactory.getLogger(AuthService.class);
private final WebClient externalWebClient;
private final SocialMemberRepository socialMemberRepository;
private final MemberService memberService;
Expand All @@ -56,7 +60,10 @@ public Mono<AuthToken> loginWithKakao(String kakaoAccessToken, String userAgent)
}

private String generateDefaultProfileImageUrl(String kakaoProfileImageUrl) {
log.info("카카오 ProfileImageUrl: {}", kakaoProfileImageUrl);

if (kakaoProfileImageUrl.contains(DEFAULT_KAKAO_PROFILE_IMAGE_URL)) {
log.info("기본 프로필 생성");
return ProfileImageGenerator.generate();
}
return kakaoProfileImageUrl;
Expand Down

0 comments on commit 5516064

Please sign in to comment.