From 2c8b215cda2beb50197b9527c3b0980c9e4f6505 Mon Sep 17 00:00:00 2001 From: Dayson Pais Date: Sat, 8 Nov 2014 15:11:20 +0530 Subject: [PATCH] Implicitly type cast exception while logging. Removed the unnecessary (string) type-casting. --- lib/Resque/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 2d6f649..750c41c 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -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; }