From 2c10d86c949c42aeae247b196e491d1f2737929b Mon Sep 17 00:00:00 2001 From: 713uk13m <713uk13m@713uk13ms-MacBook-Pro.local> Date: Sun, 7 Oct 2018 07:58:25 +0700 Subject: [PATCH] Fix class myRequest --- src/MyRequests.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/MyRequests.php b/src/MyRequests.php index f2b81c2..100da4a 100644 --- a/src/MyRequests.php +++ b/src/MyRequests.php @@ -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();