Skip to content

Commit

Permalink
Removed some info logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Christiaan van Tienhoven committed Jun 15, 2018
1 parent 222ab67 commit 78be4d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ private void resolveOrphanedAlerts() {

LOG.debug("AlertCondition: [{}]", alertCondition.getTitle());

LOG.info("Resolving duplicate alerts");
resolveDuplicateAlerts(triggeredStream, alertCondition);

LOG.debug("Checking alert condition [{}] with type [{}]", alertCondition.getId(), alertCondition.getType());
Expand Down Expand Up @@ -208,6 +207,7 @@ private void resolveOrphanedAlerts() {
* @param alertCondition the alert condition
*/
private void resolveDuplicateAlerts(Stream stream, AlertCondition alertCondition){
LOG.debug("Resolving duplicate alerts");
Optional<Alert> lastTriggeredAlert = alertService.getLastTriggeredAlert(stream.getId(), alertCondition.getId());
List<Alert> unresolvedAlerts = alertService.listForStreamIds(ImmutableList.of(stream.getId()), Alert.AlertState.UNRESOLVED, 0, 1);

Expand All @@ -228,7 +228,7 @@ private void resolveDuplicateAlerts(Stream stream, AlertCondition alertCondition
alertService.resolveAlert(unresolvedAlerts.get(0));
}
} else {
LOG.info("No unresolved duplicate alert found.");
LOG.debug("No unresolved duplicate alert found.");
}
}

Expand Down

0 comments on commit 78be4d3

Please sign in to comment.