Skip to content

Commit

Permalink
Merge pull request #953 from msvinaykumar/supresswarning
Browse files Browse the repository at this point in the history
supress warning
  • Loading branch information
dinogun authored Sep 18, 2023
2 parents 5eee58a + cd2a337 commit d5169ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,12 @@ private boolean populateRecommendation(String recommendationTerm,
if (hours == 0.0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_HOURS_CANNOT_BE_ZERO);
notifications.add(recommendationNotification);
LOGGER.error("Duration hours cannot be zero");
LOGGER.debug("Duration hours cannot be zero");
isSuccess = false;
} else if (hours < 0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_HOURS_CANNOT_BE_NEGATIVE);
notifications.add(recommendationNotification);
LOGGER.error("Duration hours cannot be negative");
LOGGER.debug("Duration hours cannot be negative");
isSuccess = false;
}

Expand Down Expand Up @@ -767,12 +767,12 @@ private boolean populateRecommendation(String recommendationTerm,
if (numPods == 0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_NUM_PODS_CANNOT_BE_ZERO);
engineNotifications.add(recommendationNotification);
LOGGER.error("Number of pods cannot be zero");
LOGGER.debug("Number of pods cannot be zero");
isSuccess = false;
} else if (numPods < 0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_NUM_PODS_CANNOT_BE_NEGATIVE);
engineNotifications.add(recommendationNotification);
LOGGER.error("Number of pods cannot be negative");
LOGGER.debug("Number of pods cannot be negative");
isSuccess = false;
} else {
recommendation.setPodsCount(numPods);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,12 +488,12 @@ private boolean populateRecommendation(String recommendationTerm,
if (numPods == 0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_NUM_PODS_CANNOT_BE_ZERO);
notifications.add(recommendationNotification);
LOGGER.error("Number of pods cannot be zero");
LOGGER.debug("Number of pods cannot be zero");
isSuccess = false;
} else if (numPods < 0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_NUM_PODS_CANNOT_BE_NEGATIVE);
notifications.add(recommendationNotification);
LOGGER.error("Number of pods cannot be negative");
LOGGER.debug("Number of pods cannot be negative");
isSuccess = false;
} else {
recommendation.setPodsCount(numPods);
Expand Down Expand Up @@ -784,12 +784,12 @@ private boolean populateRecommendation(String recommendationTerm,
if (numPods == 0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_NUM_PODS_CANNOT_BE_ZERO);
engineNotifications.add(recommendationNotification);
LOGGER.error("Number of pods cannot be zero");
LOGGER.debug("Number of pods cannot be zero");
isSuccess = false;
} else if (numPods < 0) {
RecommendationNotification recommendationNotification = new RecommendationNotification(RecommendationConstants.RecommendationNotification.ERROR_NUM_PODS_CANNOT_BE_NEGATIVE);
engineNotifications.add(recommendationNotification);
LOGGER.error("Number of pods cannot be negative");
LOGGER.debug("Number of pods cannot be negative");
isSuccess = false;
} else {
recommendation.setPodsCount(numPods);
Expand Down

0 comments on commit d5169ca

Please sign in to comment.