lib/Error/DebugErrorHandler.php
private function logError(Throwable $throwable, ?string $message = null, array $context = []): void
    {
        $context['error'] = $throwable;

        $this->logger->critical($message ?? $throwable->getMessage(), $context);
    }
private function logError(Throwable $throwable, ?string $message = null, array $context = []): void
    {
        $context['error'] = $throwable;

        $this->logger->critical($message ?? $throwable->getMessage(), $context);
    }
private function logError ( Throwable $ throwable , ? string $ message = null , array $ context = [ ] ) : void { $ context [ 'error' ] = $ throwable ; $ this -> logger -> critical ( $ message ?? $ throwable -> getMessage ( ) , $ context ) ; }
Logs the error.
Logs the error .