Remove unnecessary exception message (avoid log flooding)
This commit is contained in:
parent
1995feff61
commit
50e2478189
@ -233,9 +233,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->stopRecording();
|
$this->profiler->stopRecording();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user