Remove unnecessary exception message (avoid log flooding)

This commit is contained in:
Philipp Holzer 2021-08-20 19:48:21 +02:00
parent 1995feff61
commit 50e2478189
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD
1 changed files with 2 additions and 2 deletions

View File

@ -233,9 +233,9 @@ class HTTPRequest implements IHTTPRequest
} catch (TransferException $exception) {
if ($exception instanceof RequestException &&
$exception->hasResponse()) {
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage());
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), '');
} else {
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), $exception->getMessage());
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
}
} finally {
$this->profiler->stopRecording();