aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-08-10 14:31:56 +0200
committerGitHub <noreply@github.com>2023-08-10 14:31:56 +0200
commitb53d54ce25b7118360f12eb498fcde740eb37cd0 (patch)
tree2ec1d0ff535160a7e9c1148265d0a45bcc2449e9
parent84366949d46b13f1619910e6c68386ff579969de (diff)
parent46dfb84bca5b7e9ae922e33a6c1767f532235bc1 (diff)
downloadnextcloud-server-b53d54ce25b7118360f12eb498fcde740eb37cd0.tar.gz
nextcloud-server-b53d54ce25b7118360f12eb498fcde740eb37cd0.zip
Merge pull request #39780 from nextcloud/enh/noid/imaginary
log imaginary errors as info to not spam the server logs
-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;
}