Skip to content

Commit 95432b1

Browse files
authored
Merge pull request #49 from sendpulse/issues_46
Add debug information
2 parents a9963df + df31f8c commit 95432b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ApiClient.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ protected function sendRequest($path, $method = 'GET', $data = array(), $useToke
162162
$retval->headers = $responseHeaders;
163163
$retval->ip = $ip;
164164
$retval->curlErrors = $curlErrors;
165+
$retval->method = $method . ':' . $url;
166+
$retval->timestamp = date('Y-m-d h:i:sP');
165167
}
166168

167169
return $retval;
@@ -185,6 +187,8 @@ protected function handleResult($data)
185187
$data->data->headers = $data->headers;
186188
$data->data->curlErrors = $data->curlErrors;
187189
$data->data->ip = $data->ip;
190+
$data->data->method = $data->method;
191+
$data->data->timestamp = $data->timestamp;
188192
}
189193

190194
return $data->data;

0 commit comments

Comments
 (0)