From d2dff90aec3807c70720152eab6c01cd08bda605 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 13 Feb 2026 08:45:10 +0800 Subject: [PATCH] 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. --- public/lib/classes/router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/lib/classes/router.php b/public/lib/classes/router.php index 7e6133b6b7b..d194cf89bd7 100644 --- a/public/lib/classes/router.php +++ b/public/lib/classes/router.php @@ -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.