Skip to content

Commit

Permalink
Merge pull request #214 from marinesnow34/test
Browse files Browse the repository at this point in the history
Fix: sold 에러 로그 추가
  • Loading branch information
marinesnow34 authored Mar 24, 2024
2 parents ac8aa76 + 6f23c34 commit e483a2a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ private void verifyPoint(UserInfo user, Long point) {

private void verifyCartSoldOut(Cart cart) {
if (cart.getCartItems().stream().anyMatch(cartItem -> cartItem.getFoodie().isSoldOut())) {
log.error("verifyCartSoldOut CART_SOLD_OUT");
log.error("userId = " + cart.getUserInfo().getId());
for (CartItem cartItem : cart.getCartItems()) {
log.error("cartItem.getFoodie().getId()" + cartItem.getFoodie().getId());
log.error("cartItem.getFoodie().isSoldOut() = " + cartItem.getFoodie().isSoldOut());
}
throw new BusinessLogicException(ExceptionCode.CART_SOLD_OUT);
}
}
Expand Down

0 comments on commit e483a2a

Please sign in to comment.