Commit f78a73bb authored by Jon Pugh's avatar Jon Pugh

Make sure verbose task status indicators don't run for "logging" tasks (those...

Make sure verbose task status indicators don't run for "logging" tasks (those are only for the titles that group services.)
parent a356493d
......@@ -43,12 +43,15 @@ class ProvisionCollection extends Collection {
/** @var \Aegir\Provision\Task $task */
$task = $this->getConfig()->get($name);
if ($this->getProvision()->getOutput()->isVerbose()) {
$this->getProvision()->io()->taskInfoBlock($name, 'start');
}
// Show starting message.
// If task is not in "logging" group
if (strpos($name, 'logging.') !== 0) {
// If -v flag is used, show task start indicator.
if ($this->getProvision()->getOutput()->isVerbose()) {
$this->getProvision()->io()->taskInfoBlock($name, 'started');
}
// Show starting message.
$start_message = !empty($task->start)? $task->start: $name;
$this->getProvision()->io()->customLite($start_message , '☐');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment