Merge pull request #39780 from nextcloud/enh/noid/imaginary

log imaginary errors as info to not spam the server logs
pull/39449/head
Simon L 2 years ago committed by GitHub
commit b53d54ce25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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;
}

Loading…
Cancel
Save