aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-08-05 18:01:48 +0200
committerJulius Härtl <jus@bitgrid.net>2024-08-05 22:04:44 +0200
commit312314a75357900b2336feee9e25be175c91fd0c (patch)
tree17d95c60e7c004932ce8a21e2b129fb42da7bd99 /lib/public
parent403891e4ea124b491c3af4dc44ea7b2da3622093 (diff)
downloadnextcloud-server-312314a75357900b2336feee9e25be175c91fd0c.tar.gz
nextcloud-server-312314a75357900b2336feee9e25be175c91fd0c.zip
fix: Do not log link reference exceptions as error
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-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]);
}
}
}