From: Philipp Date: Fri, 20 Aug 2021 17:48:21 +0000 (+0200) Subject: Remove unnecessary exception message (avoid log flooding) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=50e2478189a05b4e7048fb2574a22bc25ffa2719;p=friendica.git Remove unnecessary exception message (avoid log flooding) --- diff --git a/src/Network/HTTPRequest.php b/src/Network/HTTPRequest.php index d47e969d51..e68c0a8f4b 100644 --- a/src/Network/HTTPRequest.php +++ b/src/Network/HTTPRequest.php @@ -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();