forked from GNUsocial/gnu-social
[ImageEncoder] Don't print_r the exception as that leads to an OOM error
This commit is contained in:
parent
bbdad515a2
commit
9077403f65
@ -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