Skip to content

Commit

Permalink
Merge pull request #28876 from owncloud/stable10-occ-upgrade-alwaysve…
Browse files Browse the repository at this point in the history
…rbose

[stable10] Make occ upgrade verbose by default
  • Loading branch information
Vincent Petry authored Sep 1, 2017
2 parents fe7e440 + 7ea07f3 commit e1121ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/Command/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ protected function configure() {
* @param OutputInterface $output output interface
*/
protected function execute(InputInterface $input, OutputInterface $output) {
if ($output->getVerbosity() === OutputInterface::VERBOSITY_NORMAL
&& !$input->hasParameterOption('--verbose=0', true)) {
// set to more verbose on upgrade if no explicit verbosity was set
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
}

if(\OC::checkUpgrade(false)) {
if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) {
Expand Down

0 comments on commit e1121ad

Please sign in to comment.