From: Michael Date: Mon, 11 Sep 2023 08:47:35 +0000 (+0000) Subject: Added log entry to improve matching with the access log X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ebbe8f98b7ffb3b68580a351897c0caec1617c75;p=friendica.git Added log entry to improve matching with the access log --- diff --git a/src/App.php b/src/App.php index db3e644c2f..dd54e05eea 100644 --- a/src/App.php +++ b/src/App.php @@ -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');