Skip to content
Extraits de code Groupes Projets
Valider d807689e rédigé par mattab's avatar mattab
Parcourir les fichiers

Better logging message when archiving

parent 4081d131
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -138,11 +138,12 @@ class PluginsArchiver
$this->logAggregator->setQueryOriginHint('');
Log::debug("PluginsArchiver::%s: %s while archiving %s reports for plugin '%s'.",
Log::debug("PluginsArchiver::%s: %s while archiving %s reports for plugin '%s' %s.",
__FUNCTION__,
$timer->getMemoryLeak(),
$this->params->getPeriod()->getLabel(),
$pluginName
$pluginName,
$this->params->getSegment() ? sprintf("(for segment = '%s')", $this->params->getSegment()->getString()) : ''
);
} catch (Exception $e) {
$className = get_class($e);
......
......@@ -39,7 +39,7 @@ class ConsoleCommand extends SymfonyCommand
$value = $input->getOption($name);
if ($option->isValueRequired() && empty($value)) {
throw new \InvalidArgumentException(sprintf('The required option %s is not set', $name));
throw new \InvalidArgumentException(sprintf('The required option --%s is not set', $name));
}
}
}
......
......@@ -73,12 +73,12 @@ Use the --piwik-domain option to specify which instance to modify.
foreach ($manipulations as $manipulation) {
$manipulation->manipulate($config);
$output->writeln("<info>Setting [{$manipulation->getSectionName()}] {$manipulation->getName()} = {$manipulation->getValueString()}</info>");
$output->write("<info>Setting [{$manipulation->getSectionName()}] {$manipulation->getName()} = {$manipulation->getValueString()}...</info>");
$output->writeln("<info> done.</info>");
}
$config->forceSave();
$this->writeSuccessMessage($output, array("Done."));
}
/**
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter