Skip to content

Commit

Permalink
Fix: sold 에러 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
marinesnow34 committed Mar 24, 2024
1 parent 5f486ff commit 6f23c34
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 6f23c34

Please sign in to comment.