diff --git a/app/http.php b/app/http.php index 6d493e7..1588256 100644 --- a/app/http.php +++ b/app/http.php @@ -503,7 +503,12 @@ function logError(Throwable $error, string $action, ?Logger $logger, Route $rout ->inject('response') ->action(function (Http $utopia, throwable $error, ?Logger $logger, Request $request, Response $response) { $route = $utopia->match($request); - logError($error, "httpError", $logger, $route); + try { + logError($error, "httpError", $logger, $route); + } catch (Throwable) { + Console::warning('Unable to send log message'); + } + $version = (string) Http::getEnv('OPR_PROXY_VERSION') ?: 'UNKNOWN'; $message = $error->getMessage(); diff --git a/composer.lock b/composer.lock index b16c13d..8b3dc7a 100644 --- a/composer.lock +++ b/composer.lock @@ -547,16 +547,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.2.0", + "version": "v5.3.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb" + "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb", - "reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", + "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", "shasum": "" }, "require": { @@ -599,9 +599,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.2.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" }, - "time": "2024-09-15T16:40:33+00:00" + "time": "2024-10-08T18:51:32+00:00" }, { "name": "phar-io/manifest",