Implicitly type cast exception while logging.

Removed the unnecessary (string) type-casting.
This commit is contained in:
Dayson Pais 2014-11-08 15:11:20 +05:30
parent 760e38c0ef
commit 2c8b215cda

View File

@ -241,7 +241,7 @@ class Resque_Worker
$job->perform(); $job->perform();
} }
catch(Exception $e) { 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); $job->fail($e);
return; return;
} }