diff --git a/src/clients/PostClient.php b/src/clients/PostClient.php index 0c07faa..0d915ab 100644 --- a/src/clients/PostClient.php +++ b/src/clients/PostClient.php @@ -9,9 +9,7 @@ use Psr\Log\LogLevel; class PostClient implements iClient { - - const LOG_LEVEL = LogLevel::INFO; - + /** @var string */ protected $url; /** @var string путь до приватного ключа */ @@ -78,8 +76,8 @@ public function sendRequest(BaseServiceRequest $service) { $response = curl_exec($curl); if($this->logger){ - $this->logger->log(self::LOG_LEVEL, 'Requested url '.$requestUrl.' params '. json_encode($requestParameters)); - $this->logger->log(self::LOG_LEVEL, 'Response '.$response); + $this->logger->log(LogLevel::INFO, 'Requested url '.$requestUrl.' params '. json_encode($requestParameters)); + $this->logger->log(LogLevel::INFO, 'Response '.$response); } if(curl_errno($curl)){