Skip to content

Commit 2c8b215

Browse files
author
Dayson Pais
committed
Implicitly type cast exception while logging.
Removed the unnecessary (string) type-casting.
1 parent 760e38c commit 2c8b215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Resque/Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public function perform(Resque_Job $job)
241241
$job->perform();
242242
}
243243
catch(Exception $e) {
244-
$this->logger->log(Psr\Log\LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => (string)$e));
244+
$this->logger->log(Psr\Log\LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => $e));
245245
$job->fail($e);
246246
return;
247247
}

0 commit comments

Comments
 (0)