bugfix(logger): memory consumption
Compare changes
+ 20
− 8
@@ -4,6 +4,7 @@ namespace WPDesk\ApiClient\Client;
@@ -4,6 +4,7 @@ namespace WPDesk\ApiClient\Client;
@@ -36,6 +37,9 @@ class ClientImplementation implements Client, LoggerAwareInterface
@@ -36,6 +37,9 @@ class ClientImplementation implements Client, LoggerAwareInterface
@@ -59,6 +63,7 @@ class ClientImplementation implements Client, LoggerAwareInterface
@@ -59,6 +63,7 @@ class ClientImplementation implements Client, LoggerAwareInterface
@@ -70,8 +75,10 @@ class ClientImplementation implements Client, LoggerAwareInterface
@@ -70,8 +75,10 @@ class ClientImplementation implements Client, LoggerAwareInterface
$this->logger->debug("Sends request with METHOD: {$request->getMethod()}; to ENDPOINT {$request->getEndpoint()}",
@@ -81,11 +88,16 @@ class ClientImplementation implements Client, LoggerAwareInterface
@@ -81,11 +88,16 @@ class ClientImplementation implements Client, LoggerAwareInterface
. "HEADERS: " . json_encode($headers) . "\n\n and got response as CODE: {$httpResponse->getResponseCode()};\n"
@@ -218,4 +230,4 @@ class ClientImplementation implements Client, LoggerAwareInterface
@@ -218,4 +230,4 @@ class ClientImplementation implements Client, LoggerAwareInterface
\ No newline at end of file