log uncaught exceptions as critical

This commit is contained in:
Art4 2025-04-10 11:18:38 +00:00
parent 507897eec1
commit 7bfd42ac55

View file

@ -208,7 +208,7 @@ class ErrorHandler
*/ */
private function handleException(Throwable $e): void private function handleException(Throwable $e): void
{ {
$level = LogLevel::ERROR; $level = LogLevel::CRITICAL;
foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) { foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) {
if ($e instanceof $class) { if ($e instanceof $class) {
$level = $candidate; $level = $candidate;