1
0
mirror of synced 2024-11-21 21:06:07 +03:00

small change for response logging

This commit is contained in:
Vladimir Kolchin 2023-04-06 11:43:05 +03:00
parent b4ec498f32
commit 27dab93cf5

View File

@ -136,6 +136,8 @@ class Client
list($statusCode, $responseBody) = $this->checkResponse($curlHandler, $method);
$this->logResponse($responseBody, $statusCode);
return new ApiResponse($statusCode, $responseBody);
}
@ -196,8 +198,6 @@ class Client
$statusCode = curl_getinfo($curlHandler, CURLINFO_HTTP_CODE);
$contentType = curl_getinfo($curlHandler, CURLINFO_CONTENT_TYPE);
$this->logResponse($responseBody, $statusCode);
if (503 === $statusCode) {
throw new LimitException("Service temporary unavailable");
}