Skip to content

Commit fc521f7

Browse files
ENGCOM-685: Changes static content deploy log levels verbosity #13709
- Merge Pull Request #13709 from hostep/magento2:fix-for-issue-12404 - Merged commits: 1. d549014 2. 3733dea
2 parents 3f3287f + 3733dea commit fc521f7

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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/Process/Queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function process()
161161
foreach ($packages as $name => $packageJob) {
162162
$this->assertAndExecute($name, $packages, $packageJob);
163163
}
164-
$this->logger->notice('.');
164+
$this->logger->info('.');
165165
sleep(3);
166166
foreach ($this->inProgress as $name => $package) {
167167
if ($this->isDeployed($package)) {
@@ -214,7 +214,7 @@ private function awaitForAllProcesses()
214214
unset($this->inProgress[$name]);
215215
}
216216
}
217-
$this->logger->notice('.');
217+
$this->logger->info('.');
218218
sleep(5);
219219
}
220220
if ($this->isCanBeParalleled()) {

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)