mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Remove duplicate verbosity check
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
@@ -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']);
|
||||||
|
Reference in New Issue
Block a user