Skip to content

Commit

Permalink
Merge pull request #54 from lotteon2/server-test
Browse files Browse the repository at this point in the history
🚑 서버 환경에서의 문제점을 확인하기 위한 로그 추가
  • Loading branch information
indl1670 authored Jan 10, 2024
2 parents 3e8bf70 + 13864ef commit f0779f0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import kr.bb.store.domain.store.handler.StoreReader;
import kr.bb.store.util.RedisOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -25,9 +26,10 @@

import static kr.bb.store.util.RedisUtils.makeRedisKey;

@RequiredArgsConstructor
@Transactional(readOnly = true)
@Slf4j
@Service
@Transactional(readOnly = true)
@RequiredArgsConstructor
public class CouponService {
private final CouponCreator couponCreator;
private final CouponManager couponManager;
Expand Down Expand Up @@ -133,6 +135,7 @@ public Integer getMyAvailableCouponCount(Long userId, LocalDate now) {

public void validateCouponPrice(List<ValidatePriceDto> validatePriceDtos) {
validatePriceDtos.stream()
.peek(dto -> log.info("couponId is : {}, is not null is : {}",dto.getCouponId(), dto.getCouponId() != null))
.filter(dto -> dto.getCouponId() != null)
.forEach(dto -> {
Coupon coupon = couponReader.read(dto.getCouponId());
Expand Down

0 comments on commit f0779f0

Please sign in to comment.