Remove unnecessary exception message (avoid log flooding)
This commit is contained in:
parent
b8314f0c30
commit
8c7185154d
1 changed files with 2 additions and 2 deletions
|
@ -205,9 +205,9 @@ class HTTPRequest implements IHTTPRequest
|
||||||
} catch (TransferException $exception) {
|
} catch (TransferException $exception) {
|
||||||
if ($exception instanceof RequestException &&
|
if ($exception instanceof RequestException &&
|
||||||
$exception->hasResponse()) {
|
$exception->hasResponse()) {
|
||||||
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage());
|
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), '');
|
||||||
} else {
|
} else {
|
||||||
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), $exception->getMessage());
|
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
$this->profiler->saveTimestamp($stamp1, 'network');
|
$this->profiler->saveTimestamp($stamp1, 'network');
|
||||||
|
|
Loading…
Reference in a new issue