]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't show previous log level in upgrade message
authorBjörn Schießle <bjoern@schiessle.org>
Mon, 4 Jan 2016 10:50:07 +0000 (11:50 +0100)
committerBjörn Schießle <bjoern@schiessle.org>
Mon, 4 Jan 2016 10:50:07 +0000 (11:50 +0100)
core/ajax/update.php
core/command/upgrade.php

index a5c1f79e3eaaa332f223ce6f91ea4ddcc6b47b44..879f66e102427ed96df0f41b45ecfc35b67491d3 100644 (file)
@@ -104,10 +104,10 @@ if (OC::checkUpgrade(false)) {
                $config->setSystemValue('maintenance', false);
        });
        $updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use($eventSource, $l) {
-               $eventSource->send('success', (string)$l->t('Set log level to debug - current level: "%s"', [ $logLevelName ]));
+               $eventSource->send('success', (string)$l->t('Set log level to debug'));
        });
        $updater->listen('\OC\Updater', 'resetLogLevel', function ($logLevel, $logLevelName) use($eventSource, $l) {
-               $eventSource->send('success', (string)$l->t('Reset log level to  "%s"', [ $logLevelName ]));
+               $eventSource->send('success', (string)$l->t('Reset log level'));
        });
        $updater->listen('\OC\Updater', 'startCheckCodeIntegrity', function () use($eventSource, $l) {
                $eventSource->send('success', (string)$l->t('Starting code integrity check'));
index 9031e284f85f7eee23cc60e843cfb967f83794c5..7675c168f35253a2f0626b60c67ffc57694c8f1e 100644 (file)
@@ -199,10 +199,10 @@ class Upgrade extends Command {
                                $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>");
+                               $output->writeln("<info>Set log level to debug</info>");
                        });
                        $updater->listen('\OC\Updater', 'resetLogLevel', function ($logLevel, $logLevelName) use($output) {
-                               $output->writeln("<info>Reset log level to '$logLevelName'</info>");
+                               $output->writeln("<info>Reset log level</info>");
                        });
 
                        if(OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) {