[ImageEncoder] Don't print_r the exception as that leads to an OOM error
This commit is contained in:
parent
4aee27d3a6
commit
77742c56c3
@ -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'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user