Skip to content

Commit

Permalink
[#178] feat(TokenService): deleteRefreshToken에 logging 추가 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyerinhwang-sailin authored Aug 20, 2024
1 parent ce21e62 commit 2848507
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
import com.beat.global.common.exception.NotFoundException;
import jakarta.transaction.Transactional;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@RequiredArgsConstructor
@Service
public class TokenService {
Expand Down Expand Up @@ -36,5 +38,6 @@ public void deleteRefreshToken(final Long memberId) {
() -> new NotFoundException(TokenErrorCode.REFRESH_TOKEN_NOT_FOUND)
);
tokenRepository.delete(token);
log.info("Deleted refresh token: {}", token);
}
}

0 comments on commit 2848507

Please sign in to comment.