Commit 7505536a authored by Jon Pugh's avatar Jon Pugh

Show "info" log messages.

parent 9b111b2a
......@@ -3,6 +3,7 @@
namespace Aegir\Provision;
use Drupal\Console\Core\Style\DrupalStyle;
use Psr\Log\LogLevel;
use Symfony\Component\Console\Command\Command as BaseCommand;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Symfony\Component\Console\Input\InputInterface;
......@@ -70,7 +71,9 @@ abstract class Command extends BaseCommand
// Load context from context_name argument.
$this->context_name = $this->input->getArgument('context_name');
$this->context = $this->getApplication()->getContext($this->context_name);
$this->context->logger = new ConsoleLogger($output);
$this->context->logger = new ConsoleLogger($output,
[LogLevel::INFO => OutputInterface::VERBOSITY_NORMAL]
);
}
catch (\Exception $e) {
......
......@@ -38,7 +38,7 @@ class Service {
foreach ($this->getConfigurations()[$this->context->type] as $configuration_class) {
$config = new $configuration_class($this->context, $this);
$config->write();
$this->context->logger->notice('Wrote ' . $config->description . ' to ' . $config->filename());
$this->context->logger->info('Wrote ' . $config->description . ' to ' . $config->filename());
}
}
......
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