Skip to content

Commit

Permalink
rate \Errors with SystemEvent::SEVERITY_URGENT (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Apr 1, 2022
1 parent 5efb5dd commit ebf4fc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sysmonitor/SystemMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ private function rateAndStore(SystemEvent $sysEvt)
if ($this->isFatalError($exc->getCode())) {
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;
}
} elseif ($exc instanceof \Error) {
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;
} elseif ($exc instanceof SevereException) {
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;
}
Expand Down

0 comments on commit ebf4fc8

Please sign in to comment.