diff --git a/app/src/Middleware/Authentication.php b/app/src/Middleware/Authentication.php index 28f3fdf..f5bb82b 100644 --- a/app/src/Middleware/Authentication.php +++ b/app/src/Middleware/Authentication.php @@ -24,7 +24,10 @@ class Authentication if ($this->service->isIn() or $this->isValid($request)) { return $handler->handle($request); } - $this->logger->notice("Not logged in."); + $this->logger->notice("Not logged in.", [ + 'REMOTE_ADDR' => $request->getServerParams()['REMOTE_ADDR'], + 'REQUEST_URI' => $request->getServerParams()['REQUEST_URI'] + ]); $response = $this->responseFactory->createResponse(307, 'Not logged in') ->withHeader('Referer', (string) $request->getUri()) ->withHeader('X-Redirected-URI', (string) $request->getUri());