Skip to content

Commit d549014

Browse files
committed
Changes static content deploy log levels verbosity
1 parent 9d9a6c3 commit d549014

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/code/Magento/Deploy/Console/ConsoleLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class ConsoleLogger extends AbstractLogger
8282
LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
8383
LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
8484
LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
85-
LogLevel::NOTICE => OutputInterface::VERBOSITY_VERBOSE,
86-
LogLevel::INFO => OutputInterface::VERBOSITY_VERY_VERBOSE,
85+
LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL,
86+
LogLevel::INFO => OutputInterface::VERBOSITY_VERBOSE,
8787
LogLevel::DEBUG => OutputInterface::VERBOSITY_DEBUG
8888
];
8989

app/code/Magento/Deploy/Service/DeployPackage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ private function register(Package $package, PackageFile $file = null, $skipLoggi
271271
$this->deployStaticFile->writeTmpFile('info.json', $package->getPath(), json_encode($info));
272272

273273
if (!$skipLogging) {
274-
$this->logger->notice($logMessage);
274+
$this->logger->info($logMessage);
275275
}
276276
}
277277
}

setup/src/Magento/Setup/Console/Command/DeployStaticContentCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
127127

128128
$logger = $this->consoleLoggerFactory->getLogger($output, $verbose);
129129
if (!$refreshOnly) {
130-
$logger->alert(PHP_EOL . "Deploy using {$options[Options::STRATEGY]} strategy");
130+
$logger->notice(PHP_EOL . "Deploy using {$options[Options::STRATEGY]} strategy");
131131
}
132132

133133
$this->mockCache();
@@ -140,7 +140,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
140140
$deployService->deploy($options);
141141

142142
if (!$refreshOnly) {
143-
$logger->alert(PHP_EOL . "Execution time: " . (microtime(true) - $time));
143+
$logger->notice(PHP_EOL . "Execution time: " . (microtime(true) - $time));
144144
}
145145

146146
return \Magento\Framework\Console\Cli::RETURN_SUCCESS;

setup/src/Magento/Setup/Test/Unit/Console/Command/DeployStaticContentCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testExecute($input)
102102

103103
$this->consoleLoggerFactory->expects($this->once())
104104
->method('getLogger')->willReturn($this->logger);
105-
$this->logger->expects($this->exactly(2))->method('alert');
105+
$this->logger->expects($this->exactly(2))->method('notice');
106106

107107
$this->objectManager->expects($this->once())->method('create')->willReturn($this->deployService);
108108
$this->deployService->expects($this->once())->method('deploy');

0 commit comments

Comments
 (0)