Skip to content

Commit 08de86a

Browse files
authored
Merge pull request #197 from epicwhale/patch-1
More verbose logging if a Job throws an exception
2 parents be9ef1b + 2c8b215 commit 08de86a

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
@@ -245,7 +245,7 @@ public function perform(Resque_Job $job)
245245
$job->perform();
246246
}
247247
catch(Exception $e) {
248-
$this->logger->log(Psr\Log\LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => $e->getMessage()));
248+
$this->logger->log(Psr\Log\LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => $e));
249249
$job->fail($e);
250250
return;
251251
}

0 commit comments

Comments
 (0)