From d5bbda95a6435fa8cb38b8b640440b38de6b7f83 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 31 May 2016 14:21:54 -0500 Subject: [PATCH] set exception handler even on non daemon --- src/Illuminate/Queue/Console/WorkCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Queue/Console/WorkCommand.php b/src/Illuminate/Queue/Console/WorkCommand.php index 030771102f8c..2c8e413991ea 100755 --- a/src/Illuminate/Queue/Console/WorkCommand.php +++ b/src/Illuminate/Queue/Console/WorkCommand.php @@ -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')