public function __invoke(callable $handler)
{
return function (RequestInterface $request, array $options) use($handler) {
$curlCommand = (new CurlFormatter())->format($request, $options);
$this->logger->debug($curlCommand);
return $handler($request, $options);
};
}