[ImageEncoder] Don't print_r the exception as that leads to an OOM error

This commit is contained in:
Hugo Sales 2021-08-03 17:46:39 +00:00
parent bbdad515a2
commit 9077403f65
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -158,7 +158,7 @@ class ImageEncoder extends Plugin
try {
$image = Vips\Image::thumbnail($source, $width, ['height' => $height]);
} catch (Exception $e) {
Log::error(__METHOD__ . ' encountered exception: ' . print_r($e, true));
Log::error(__METHOD__ . ' encountered exception: ' . get_class($e));
// TRANS: Exception thrown when trying to resize an unknown file type.
throw new Exception(_m('Unknown file type'));
}