mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-21 16:01:53 +00:00
Merge pull request #197 from epicwhale/patch-1
More verbose logging if a Job throws an exception
This commit is contained in:
commit
08de86a41e
@ -245,7 +245,7 @@ class Resque_Worker
|
||||
$job->perform();
|
||||
}
|
||||
catch(Exception $e) {
|
||||
$this->logger->log(Psr\Log\LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => $e->getMessage()));
|
||||
$this->logger->log(Psr\Log\LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => $e));
|
||||
$job->fail($e);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user