don't show previous log level in upgrade message

This commit is contained in:
Björn Schießle 2016-01-04 11:50:07 +01:00
parent 157bb50a39
commit 58b1221ad3
2 changed files with 4 additions and 4 deletions

View 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'));

View 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()) {