From 7ea07f331d01ff5b56b395d3021504e90ea5da37 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 28 Aug 2017 10:57:04 +0200 Subject: [PATCH] Make occ upgrade verbose by default This will always output timestamps and also mention each market app that is being checked through the marketplace. --- core/Command/Upgrade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php index 467338d6f14b..1265d22ce456 100644 --- a/core/Command/Upgrade.php +++ b/core/Command/Upgrade.php @@ -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()) {