Skip to content

Commit

Permalink
set exception handler even on non daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 31, 2016
1 parent af2661a commit d5bbda9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Queue/Console/WorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ public function fire()
*/
protected function runWorker($connection, $queue, $delay, $memory, $daemon = false)
{
$this->worker->setDaemonExceptionHandler(
$this->laravel['Illuminate\Contracts\Debug\ExceptionHandler']
);

if ($daemon) {
$this->worker->setCache($this->laravel['cache']->driver());

$this->worker->setDaemonExceptionHandler(
$this->laravel['Illuminate\Contracts\Debug\ExceptionHandler']
);

return $this->worker->daemon(
$connection, $queue, $delay, $memory,
$this->option('sleep'), $this->option('tries')
Expand Down

0 comments on commit d5bbda9

Please sign in to comment.