[Console] Handle new verbosity levels
This commit is contained in:
parent
e639686ad5
commit
54c1377a33
@ -96,7 +96,7 @@ EOF
|
|||||||
$builder->setWorkingDirectory($input->getOption('docroot'));
|
$builder->setWorkingDirectory($input->getOption('docroot'));
|
||||||
$builder->setTimeout(null);
|
$builder->setTimeout(null);
|
||||||
$builder->getProcess()->run(function ($type, $buffer) use ($output) {
|
$builder->getProcess()->run(function ($type, $buffer) use ($output) {
|
||||||
if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) {
|
if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
|
||||||
$output->write($buffer);
|
$output->write($buffer);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -770,7 +770,7 @@ class Application
|
|||||||
$output->writeln("");
|
$output->writeln("");
|
||||||
$output->writeln("");
|
$output->writeln("");
|
||||||
|
|
||||||
if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) {
|
if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
|
||||||
$output->writeln('<comment>Exception trace:</comment>');
|
$output->writeln('<comment>Exception trace:</comment>');
|
||||||
|
|
||||||
// exception related properties
|
// exception related properties
|
||||||
|
@ -196,6 +196,8 @@ class ProgressHelper extends Helper
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OutputInterface::VERBOSITY_VERBOSE:
|
case OutputInterface::VERBOSITY_VERBOSE:
|
||||||
|
case OutputInterface::VERBOSITY_VERY_VERBOSE:
|
||||||
|
case OutputInterface::VERBOSITY_DEBUG:
|
||||||
$this->format = self::FORMAT_VERBOSE_NOMAX;
|
$this->format = self::FORMAT_VERBOSE_NOMAX;
|
||||||
if ($this->max > 0) {
|
if ($this->max > 0) {
|
||||||
$this->format = self::FORMAT_VERBOSE;
|
$this->format = self::FORMAT_VERBOSE;
|
||||||
|
Reference in New Issue
Block a user