|
|
|
|
@ -52,8 +52,10 @@ abstract class Job implements IJob { |
|
|
|
|
$this->run($this->argument); |
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|
if ($logger) { |
|
|
|
|
$logger->error('Error while running background job (class: ' . get_class($this) . ', arguments: ' . print_r($this->argument, true) . ')'); |
|
|
|
|
$logger->logException($e); |
|
|
|
|
$logger->logException($e, [ |
|
|
|
|
'app' => 'core', |
|
|
|
|
'message' => 'Error while running background job (class: ' . get_class($this) . ', arguments: ' . print_r($this->argument, true) . ')' |
|
|
|
|
]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|