Hi, I want to skip logging MissingController Exceptions in the error.log, but the keep showing up. I’ve tried the following:
In config/app.php
'Error' => [
'errorLevel' => E_ALL,
'exceptionRenderer' => ExceptionRenderer::class,
'skipLog' => [
'MissingControllerException'
],
'log' => true,
'trace' => false,
],
And in config/bootstrap.php
Configure::write('Exception', [
'handler' => 'ErrorHandler::handleException',
'renderer' => 'ExceptionRenderer',
'log' => true,
'skipLog' => [
'MissingControllerException'
]
]);
But they keep showing up in the error.log when going to a non-existing url.
Error: [Cake\Http\Exception\MissingControllerException] Controller class Xxx could not be found. in /usr/local/web/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php on line 226
Request URL: /xxx