We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 64aa965 commit a917ed8Copy full SHA for a917ed8
src/Psr18/StreamClient.php
@@ -59,7 +59,10 @@ public function sendRequest(RequestInterface $request):ResponseInterface{
59
try{
60
$responseBody = file_get_contents($requestUri, false, $context);
61
$responseHeaders = $this->parseResponseHeaders(get_headers($requestUri, 1, $context));
62
- }catch(\Exception $e){
+ }
63
+ catch(\Exception $e){
64
+ $this->logger->error('StreamClient error #'.$e->getCode().': '.$e->getMessage());
65
+
66
throw new ClientException($e->getMessage(), $e->getCode());
67
}
68
0 commit comments