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:
Simon L 2023-08-09 16:10:27 +02:00
parent 5fcb19c398
commit 46dfb84bca

View file

@ -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;
}