Added log entry to improve matching with the access log

This commit is contained in:
Michael 2023-09-11 08:47:35 +00:00
parent 6ce160ef0b
commit ebbe8f98b7
1 changed files with 3 additions and 0 deletions

View File

@ -565,6 +565,9 @@ class App
*/
public function runFrontend(App\Router $router, IManagePersonalConfigValues $pconfig, Authentication $auth, App\Page $page, Nav $nav, ModuleHTTPException $httpException, HTTPInputData $httpInput, float $start_time, array $server)
{
$requeststring = ($_SERVER['REQUEST_METHOD'] ?? '') . ' ' . ($_SERVER['REQUEST_URI'] ?? '') . ' ' . ($_SERVER['SERVER_PROTOCOL'] ?? '');
$this->logger->debug('Got request', ['address' => $_SERVER['REMOTE_ADDR'] ?? '', 'request' => $requeststring, 'referer' => $_SERVER['HTTP_REFERER'] ?? '', 'user-agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
$this->profiler->set($start_time, 'start');
$this->profiler->set(microtime(true), 'classinit');