Skip to content

Commit

Permalink
Merge pull request #3 from nguyenanhung/develop
Browse files Browse the repository at this point in the history
Fix class myRequest
  • Loading branch information
nguyenanhung authored Oct 7, 2018
2 parents 21deb48 + 2c10d86 commit e19b418
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/MyRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,13 @@ public function curlRequest($url = '', $data = [], $method = 'GET')
// Close Request
$curl->close();
// Log Response
$this->debug->info('Final Result from Request: ', $response);
$this->debug->debug('Error Code: ', $curl->error_code);
$this->debug->debug('HTTP Status Code: ', $curl->http_status_code);
$this->debug->debug('HTTP Error: ', $curl->http_error);
$this->debug->debug('HTTP Error Message: ', $curl->http_error_message);
$this->debug->debug('Request Header: ', $curl->request_headers);
$this->debug->debug('Response Header: ', $curl->response_headers);
$this->debug->info(__FUNCTION__, 'Final Result from Request: ', $response);
$this->debug->debug(__FUNCTION__, 'Error Code: ', $curl->error_code);
$this->debug->debug(__FUNCTION__, 'HTTP Status Code: ', $curl->http_status_code);
$this->debug->debug(__FUNCTION__, 'HTTP Error: ', $curl->http_error);
$this->debug->debug(__FUNCTION__, 'HTTP Error Message: ', $curl->http_error_message);
$this->debug->debug(__FUNCTION__, 'Request Header: ', $curl->request_headers);
$this->debug->debug(__FUNCTION__, 'Response Header: ', $curl->response_headers);
}
catch (\Exception $e) {
$response = "Error File: " . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Message: ' . $e->getMessage();
Expand Down

0 comments on commit e19b418

Please sign in to comment.