Log actual exception in ResizeJob
This commit is contained in:
parent
8ad60f6ec5
commit
a345464d06
|
@ -11,8 +11,13 @@ class ResizeJob
|
||||||
|
|
||||||
public function fire($job, $params)
|
public function fire($job, $params)
|
||||||
{
|
{
|
||||||
list($file) = $params;
|
try {
|
||||||
app(ImageResizer::class)->generate(new MediaPath($file));
|
list($file) = $params;
|
||||||
|
app(ImageResizer::class)->generate(new MediaPath($file));
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
Log::error('Resizing of image failed. Message: "'.$e->getMessage().'" in file "'.$e->getFile().'" on line '.$e->getLine());
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function failed($data, Throwable $e)
|
public function failed($data, Throwable $e)
|
||||||
|
|
Loading…
Reference in New Issue