summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-09-29 14:35:32 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-09-29 14:35:32 +0200
commit5acb38b5b324a76d757074402da69f428712efd6 (patch)
tree01b02bbf054cbbbe7096d91f7af147de18af867d /core/command
parentc2dd0f80ec2d22d07fb3df79e043ff0c3e0090c6 (diff)
downloadnextcloud-server-5acb38b5b324a76d757074402da69f428712efd6.tar.gz
nextcloud-server-5acb38b5b324a76d757074402da69f428712efd6.zip
[upgrade] switch to debug logging on upgrade
* resets afterwards * adds output about the previous log level
Diffstat (limited to 'core/command')
-rw-r--r--core/command/upgrade.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index 44e0b66c17c..fa160d9a1c0 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -177,6 +177,12 @@ class Upgrade extends Command {
$updater->listen('\OC\Updater', 'failure', function ($message) use($output, $self) {
$output->writeln("<error>$message</error>");
});
+ $updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use($output) {
+ $output->writeln("<info>Set log level to debug - current level: '$logLevelName'</info>");
+ });
+ $updater->listen('\OC\Updater', 'resetLogLevel', function ($logLevel, $logLevelName) use($output) {
+ $output->writeln("<info>Reset log level to '$logLevelName'</info>");
+ });
if(OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) {
$updater->listen('\OC\Updater', 'repairInfo', function ($message) use($output) {