Skip to content

Commit

Permalink
Update logs displaying while updating modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Sep 3, 2024
1 parent cd98814 commit 056d93f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/Task/Upgrade/UpgradeModules.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public function run(): int
$moduleInfos = $listModules->getNext();

try {
$this->logger->debug($this->translator->trans('Updating module %module%...', ['%module%' => $moduleInfos['name']]));
$this->logger->debug($this->translator->trans('Checking updates of module %module%...', ['%module%' => $moduleInfos['name']]));

$moduleDownloaderContext = new ModuleDownloaderContext($moduleInfos);
$moduleSourceList->setSourcesIn($moduleDownloaderContext);

if (empty($moduleDownloaderContext->getUpdateSources())) {
$this->logger->debug($this->translator->trans('No updates available for module %module%...', ['%module%' => $moduleInfos['name']]));
$this->logger->debug($this->translator->trans('Module %module% is up-to-date.', ['%module%' => $moduleInfos['name']]));
} else {
$moduleDownloader->downloadModule($moduleDownloaderContext);

Expand Down Expand Up @@ -124,12 +124,12 @@ public function run(): int
if ($modules_left) {
$this->stepDone = false;
$this->next = 'upgradeModules';
$this->logger->info($this->translator->trans('%s modules left to upgrade.', [$modules_left]));
$this->logger->info($this->translator->trans('%s modules left to update.', [$modules_left]));
} else {
$this->stepDone = true;
$this->status = 'ok';
$this->next = 'cleanDatabase';
$this->logger->info($this->translator->trans('Addons modules files have been upgraded.'));
$this->logger->info($this->translator->trans('All modules have been updated.'));
}

return ExitCode::SUCCESS;
Expand Down

0 comments on commit 056d93f

Please sign in to comment.