Skip to content

Commit

Permalink
Merge pull request #28813 from owncloud/occ-upgrade-alwaysverbose
Browse files Browse the repository at this point in the history
Make occ upgrade verbose by default
  • Loading branch information
Vincent Petry authored Aug 31, 2017
2 parents da5030c + 53c4d37 commit 0632ed4
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 0632ed4

Please sign in to comment.