1
0
Fork 0

Use Args::getMethod() at various places

This commit is contained in:
Philipp Holzer 2022-01-02 22:25:50 +01:00
commit 4e67bfed8d
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
5 changed files with 6 additions and 15 deletions

View file

@ -47,7 +47,7 @@ class Error extends BaseFactory
private function logError(int $errorno, string $error)
{
$this->logger->info('API Error', ['no' => $errorno, 'error' => $error, 'method' => $this->server['REQUEST_METHOD'] ?? '', 'command' => $this->args->getQueryString(), 'user-agent' => $this->server['HTTP_USER_AGENT'] ?? '']);
$this->logger->info('API Error', ['no' => $errorno, 'error' => $error, 'method' => $this->args->getMethod(), 'command' => $this->args->getQueryString(), 'user-agent' => $this->server['HTTP_USER_AGENT'] ?? '']);
}
public function RecordNotFound()