aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-08-06 17:52:57 +0200
committerGitHub <noreply@github.com>2024-08-06 17:52:57 +0200
commitbdf00f0870bcee53b4235408bf9a9f66d54538d6 (patch)
tree9a99a5455e4fcc070eefa79c6c34e5758bc6545f
parent2d8676fa5ddb24c33d9e014dd41d4de072925223 (diff)
parent312314a75357900b2336feee9e25be175c91fd0c (diff)
downloadnextcloud-server-bdf00f0870bcee53b4235408bf9a9f66d54538d6.tar.gz
nextcloud-server-bdf00f0870bcee53b4235408bf9a9f66d54538d6.zip
Merge pull request #47048 from nextcloud/fix/log-link-reference-error
-rw-r--r--lib/public/Collaboration/Reference/LinkReferenceProvider.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/public/Collaboration/Reference/LinkReferenceProvider.php b/lib/public/Collaboration/Reference/LinkReferenceProvider.php
index a7f54d02c04..9fffcd523f7 100644
--- a/lib/public/Collaboration/Reference/LinkReferenceProvider.php
+++ b/lib/public/Collaboration/Reference/LinkReferenceProvider.php
@@ -9,7 +9,6 @@ declare(strict_types=1);
namespace OCP\Collaboration\Reference;
use Fusonic\OpenGraph\Consumer;
-use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Psr7\LimitStream;
use GuzzleHttp\Psr7\Utils;
use OC\Security\RateLimiting\Exception\RateLimitExceededException;
@@ -186,10 +185,8 @@ class LinkReferenceProvider implements IReferenceProvider, IPublicReferenceProvi
$folder->newFile(md5($reference->getId()), $bodyStream->getContents());
$reference->setImageUrl($this->urlGenerator->linkToRouteAbsolute('core.Reference.preview', ['referenceId' => md5($reference->getId())]));
}
- } catch (GuzzleException $e) {
- $this->logger->info('Failed to fetch and store the open graph image for ' . $reference->getId(), ['exception' => $e]);
- } catch (\Throwable $e) {
- $this->logger->error('Failed to fetch and store the open graph image for ' . $reference->getId(), ['exception' => $e]);
+ } catch (\Exception $e) {
+ $this->logger->debug('Failed to fetch and store the open graph image for ' . $reference->getId(), ['exception' => $e]);
}
}
}