Steps to reproduce on Drupal 8.7.5:
- In Simple Accesss Log config, don't check "Don`t log Admin users"
- Go to /admin/reports/status click on 'check manually' -> WSD
The following log entry is added:
Error: Call to undefined function Drupal\system\Controller\_batch_current_set() in Drupal\system\Controller\BatchController->batchPageTitle() (line 91 of /srv/bindings/code/core/modules/system/src/Controller/BatchController.php) #0 [internal function]: Drupal\system\Controller\BatchController->batchPageTitle() #1 /srv/bindings/code/core/lib/Drupal/Core/Controller/TitleResolver.php(58): call_user_func_array(Array, Array) #2 /srv/bindings/code/modules/contrib/simple_access_log/src/Controller/SimpleAccessLog.php(82): Drupal\Core\Controller\TitleResolver->getTitle(Object(Symfony\Component\HttpFoundation\Request), Object(Symfony\Component\Routing\Route)) #3 /srv/bindings/code/modules/contrib/simple_access_log/src/EventSubscriber/SimpleAccessLogSubscriber.php(25): Drupal\simple_access_log\Controller\SimpleAccessLog->logValues() #4 [internal function]: Drupal\simple_access_log\EventSubscriber\SimpleAccessLogSubscriber->executeLogFunction(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #5 /srv/bindings/code/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #6 /srv/bindings/code/vendor/symfony/http-kernel/HttpKernel.php(127): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.request', Object(Symfony\Component\HttpKernel\Event\GetResponseEvent)) #7 /srv/bindings/code/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #8 /srv/bindings/code/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /srv/bindings/code/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 /srv/bindings/code/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 /srv/bindings/code/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /srv/bindings/code/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 /srv/bindings/code/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 /srv/bindings/code/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /srv/bindings/code/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /srv/bindings/code/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /srv/bindings/code/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #18 {main}.
This should be handled more gracefully. "Don`t log Admin users" should be checked by default.