mirror of
https://github.com/friendica/friendica
synced 2024-11-10 23:42:53 +00:00
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) {
|
||||
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->saveTimestamp($stamp1, 'network');
|
||||
|
|
Loading…
Reference in a new issue