From: Simon L Date: Wed, 9 Aug 2023 14:10:27 +0000 (+0200) Subject: log imaginary errors as info to not spam the server logs X-Git-Tag: v28.0.0beta1~571^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F39780%2Fhead;p=nextcloud-server.git log imaginary errors as info to not spam the server logs Signed-off-by: Simon L --- diff --git a/lib/private/Preview/Imaginary.php b/lib/private/Preview/Imaginary.php index 74f04e09250..da4864b1a22 100644 --- a/lib/private/Preview/Imaginary.php +++ b/lib/private/Preview/Imaginary.php @@ -148,14 +148,14 @@ class Imaginary extends ProviderV2 { 'connect_timeout' => 3, ]); } catch (\Exception $e) { - $this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [ + $this->logger->info('Imaginary preview generation failed: ' . $e->getMessage(), [ 'exception' => $e, ]); return null; } if ($response->getStatusCode() !== 200) { - $this->logger->error('Imaginary preview generation failed: ' . json_decode($response->getBody())['message']); + $this->logger->info('Imaginary preview generation failed: ' . json_decode($response->getBody())['message']); return null; }