mirror of
https://github.com/nextcloud/server.git
synced 2026-03-28 21:33:40 -04:00
log imaginary errors as info to not spam the server logs
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
d97a58dde6
commit
3f51e2d58b
1 changed files with 2 additions and 2 deletions
|
|
@ -147,14 +147,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…
Reference in a new issue