Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Silently delete failing alert to avoid filling error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 12, 2014
1 parent a9f4f5d commit 357805d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -248,6 +248,9 @@ public function loadUserAlerts($actionName, $httpVars, $fileVars)
try {
$node->loadNodeInfo();
} catch (Exception $e) {
if($notification->alert_id){
$this->eventStore->dismissAlertById($notification->alert_id);
}
continue;
}
$node->event_is_alert = true;
Expand Down

0 comments on commit 357805d

Please sign in to comment.