Skip to content

Commit 6f9c93e

Browse files
authored
Merge pull request #861 from php-enqueue/remove-console-logger
[client] Fix --logger option. Removed unintentionally set console logger.
2 parents c7e7a0a + b7b6b81 commit 6f9c93e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/enqueue/Symfony/Client/ConsumeCommand.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Enqueue\Client\DriverInterface;
66
use Enqueue\Consumption\ChainExtension;
77
use Enqueue\Consumption\Extension\ExitStatusExtension;
8-
use Enqueue\Consumption\Extension\LoggerExtension;
98
use Enqueue\Consumption\ExtensionInterface;
109
use Enqueue\Consumption\QueueConsumerInterface;
1110
use Enqueue\Symfony\Consumption\ChooseLoggerCommandTrait;
@@ -18,7 +17,6 @@
1817
use Symfony\Component\Console\Input\InputArgument;
1918
use Symfony\Component\Console\Input\InputInterface;
2019
use Symfony\Component\Console\Input\InputOption;
21-
use Symfony\Component\Console\Logger\ConsoleLogger;
2220
use Symfony\Component\Console\Output\OutputInterface;
2321

2422
class ConsumeCommand extends Command
@@ -154,7 +152,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int
154152

155153
protected function getRuntimeExtensions(InputInterface $input, OutputInterface $output): ExtensionInterface
156154
{
157-
$extensions = [new LoggerExtension(new ConsoleLogger($output))];
155+
$extensions = [];
158156
$extensions = array_merge($extensions, $this->getLimitsExtensions($input, $output));
159157

160158
$driver = $this->getDriver($input->getOption('client'));

0 commit comments

Comments
 (0)