Skip to content

Commit

Permalink
Added some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Jun 18, 2015
1 parent d218c7b commit db8a2b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ public DojrzewatrUpdater(ServiceRestClient serviceRestClient, RetryExecutor retr

Ingredients updateIfLimitReached(Ingredients ingredients) {
if (ingredientsMatchTheThreshold(ingredients)) {
log.info("Ingredients match the threshold - time to notify dojrzewatr!");
notifyDojrzewatr(ingredients);
updateDatabaseStatus();
}
return ingredientWarehouse.getCurrentState();
Ingredients currentState = ingredientWarehouse.getCurrentState();
log.info("Current state of ingredients is {}", currentState);
return currentState;
}

private boolean ingredientsMatchTheThreshold(Ingredients ingredients) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package pl.devoxx.aggregatr.aggregation.model;

import com.google.common.collect.Lists;
import lombok.ToString;

import java.util.List;

@ToString
public class Ingredients {

public Ingredients() {
Expand Down

0 comments on commit db8a2b9

Please sign in to comment.