Remove duplicate verbosity check

This commit is contained in:
Romain Neutron
2013-06-27 14:05:08 +02:00
parent efd0f86fe2
commit 24f6f19731
2 changed files with 0 additions and 9 deletions

View File

@@ -42,11 +42,6 @@ class BuildMissingSubdefs extends Command
*/ */
protected function doExecute(InputInterface $input, OutputInterface $output) protected function doExecute(InputInterface $input, OutputInterface $output)
{ {
if ($input->getOption('verbose')) {
$handler = new StreamHandler('php://stdout');
$this->container['monolog']->pushHandler($handler);
}
$start = microtime(true); $start = microtime(true);
$n = 0; $n = 0;

View File

@@ -95,10 +95,6 @@ class module_console_taskrun extends Command
} }
} }
if ($input->getOption('verbose')) {
$this->container['monolog']->pushHandler(new StreamHandler('php://stdout'));
}
$logfile = __DIR__ . '/../../../../logs/task_' . $task_id . '.log'; $logfile = __DIR__ . '/../../../../logs/task_' . $task_id . '.log';
$this->container['monolog']->pushHandler(new RotatingFileHandler($logfile, 10)); $this->container['monolog']->pushHandler(new RotatingFileHandler($logfile, 10));
$this->task = $task_manager->getTask($task_id, $this->container['monolog']); $this->task = $task_manager->getTask($task_id, $this->container['monolog']);