Skip to content

Commit

Permalink
Make occ upgrade verbose by default
Browse files Browse the repository at this point in the history
This will always output timestamps and also mention each market app that
is being checked through the marketplace.
  • Loading branch information
Vincent Petry committed Aug 31, 2017
1 parent fe7e440 commit 7ea07f3
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 7ea07f3

Please sign in to comment.