Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.javatechie.pm.api.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;

Expand All @@ -10,6 +12,8 @@
@Service
public class OrderService {

private static final Logger logger = LoggerFactory.getLogger(OrderService.class);

private final NotificationUtil notificationUtil;

public OrderService(NotificationUtil notificationUtil) {
Expand All @@ -25,7 +29,7 @@ public OrderResponse checkoutOrder(OrderRequest order) {
}

private int addDiscount(OrderRequest order) {
System.out.println("called...");
logger.info("called...");
int price = order.getPrice();
int discountAMount = 0;
if (order.isDiscountable()) {
Expand Down