]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
API: The legacy API finally moved
[friendica.git] / src / Util / ParseUrl.php
index 83af765c5c8824e492a915091127914fae7486f0..04afc927ba6cec4229c8167a6bcafe66e4c317d9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -216,6 +216,7 @@ class ParseUrl
 
                $curlResult = DI::httpClient()->get($url, [HttpClientOptions::CONTENT_LENGTH => 1000000]);
                if (!$curlResult->isSuccess() || empty($curlResult->getBody())) {
+                       Logger::info('Empty body or error when fetching', ['url' => $url, 'success' => $curlResult->isSuccess(), 'code' => $curlResult->getReturnCode()]);
                        return $siteinfo;
                }