Skip to content

Commit a917ed8

Browse files
committedFeb 23, 2019
:octocat:
1 parent 64aa965 commit a917ed8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/Psr18/StreamClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ public function sendRequest(RequestInterface $request):ResponseInterface{
5959
try{
6060
$responseBody = file_get_contents($requestUri, false, $context);
6161
$responseHeaders = $this->parseResponseHeaders(get_headers($requestUri, 1, $context));
62-
}catch(\Exception $e){
62+
}
63+
catch(\Exception $e){
64+
$this->logger->error('StreamClient error #'.$e->getCode().': '.$e->getMessage());
65+
6366
throw new ClientException($e->getMessage(), $e->getCode());
6467
}
6568

0 commit comments

Comments
 (0)
Please sign in to comment.