mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Implicitly type cast exception while logging.
Removed the unnecessary (string) type-casting.
This commit is contained in:
parent
760e38c0ef
commit
2c8b215cda
@ -241,7 +241,7 @@ class Resque_Worker
|
||||
$job->perform();
|
||||
}
|
||||
catch(Exception $e) {
|
||||
$this->logger->log(Psr\Log\LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => (string)$e));
|
||||
$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