MDL-86866 core: Do not log route errors

Doing so leads to excessive noise in logs and unit tests.

At the moment we have no way to control these logs. This will change
when we bring in a PSR-4 logger and can use that instead, but at the
moment we do not have any such logger in core.
This commit is contained in:
Andrew Nicols
2026-02-25 18:31:13 +08:00
parent 1be333a5d0
commit d2dff90aec
+2 -2
View File
@@ -210,8 +210,8 @@ class router {
$this->app->getCallableResolver(),
$this->app->getResponseFactory(),
displayErrorDetails: $displayerrordetails,
logErrors: true,
logErrorDetails: true,
logErrors: false,
logErrorDetails: false,
);
// Set a custom error handler for the HttpNotFoundException and HttpForbiddenException.