Merge pull request #14880 from Art4/log-exceptions-as-critical

Log uncaught exceptions as critical
This commit is contained in:
Hypolite Petovan 2025-04-10 10:06:27 -04:00 committed by GitHub
commit 83f561ea49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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