aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-08-09 16:10:27 +0200
committerSimon L <szaimen@e.mail.de>2023-08-09 16:10:27 +0200
commit46dfb84bca5b7e9ae922e33a6c1767f532235bc1 (patch)
tree18be073fe60ac8edcc021872183171b5980e0bc4 /lib/private/Preview
parent5fcb19c3987013b0db75962a39c582c8eb0570c7 (diff)
downloadnextcloud-server-46dfb84bca5b7e9ae922e33a6c1767f532235bc1.tar.gz
nextcloud-server-46dfb84bca5b7e9ae922e33a6c1767f532235bc1.zip
log imaginary errors as info to not spam the server logs
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r--lib/private/Preview/Imaginary.php4
1 files changed, 2 insertions, 2 deletions
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;
}