Skip to content

Commit

Permalink
Merge pull request #39780 from nextcloud/enh/noid/imaginary
Browse files Browse the repository at this point in the history
log imaginary errors as info to not spam the server logs
  • Loading branch information
szaimen authored Aug 10, 2023
2 parents 8436694 + 46dfb84 commit b53d54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Preview/Imaginary.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
'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;
}

Expand Down

0 comments on commit b53d54c

Please sign in to comment.