Skip to content

Commit

Permalink
chore: log를 추가한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed May 12, 2024
1 parent f1ab63c commit 0acbad1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- dev

- feat/**
# 권한 설정
permissions:
contents: read
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
import com.moneymong.global.security.oauth.dto.OAuthUserInfo;
import com.moneymong.global.security.token.repository.RefreshTokenRepository;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.UUID;

@Service
@Slf4j
@RequiredArgsConstructor
public class UserService {

Expand Down Expand Up @@ -53,6 +55,9 @@ public User registerUser(OAuthUserInfo oauthUserInfo) {
);
newUser = save(newUser);

log.info("[UserService] registerUserId = {}", newUser.getId());
log.info("[UserService] refreshToken = {}", oauthUserInfo.getAppleRefreshToken());

if (oauthUserInfo.getAppleRefreshToken() != null) {
appleUserRepository.save(
AppleUser.of(
Expand All @@ -65,7 +70,6 @@ public User registerUser(OAuthUserInfo oauthUserInfo) {
return newUser;
}


@Transactional(readOnly = true)
public UserProfileResponse getUserProfile(Long userId) {
User user = userRepository.findById(userId)
Expand Down

0 comments on commit 0acbad1

Please sign in to comment.