Skip to content

Commit ebf4fc8

Browse files
authored
rate \Errors with SystemEvent::SEVERITY_URGENT (#23)
1 parent 5efb5dd commit ebf4fc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sysmonitor/SystemMonitor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ private function rateAndStore(SystemEvent $sysEvt)
117117
if ($this->isFatalError($exc->getCode())) {
118118
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;
119119
}
120+
} elseif ($exc instanceof \Error) {
121+
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;
120122
} elseif ($exc instanceof SevereException) {
121123
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;
122124
}

0 commit comments

Comments
 (0)