Skip to content
Snippets Groups Projects

bugfix(logger): memory consumption

Merged Grzegorz Rola requested to merge bugfix/memory-consumption into master
@@ -63,7 +63,7 @@ class ClientImplementation implements Client, LoggerAwareInterface
$this->apiUrl = $apiUri;
$this->defaultRequestHeaders = $defaultRequestHeaders;
$this->timeout = $timeout;
$this->is_logger_available = ! $logger instanceof NullLogger;
$this->is_logger_available = ! $logger instanceof NullLogger;
}
/**
@@ -88,7 +88,7 @@ class ClientImplementation implements Client, LoggerAwareInterface
$this->timeout
);
if ( $this->is_logger_available ) {
if ($this->is_logger_available) {
$this->logger->debug(
"Sent request with: URL: {$fullUrl};\n METHOD: {$method};\n BODY: {$body};\n"
."HEADERS: ".json_encode(
Loading