Skip to content

Commit

Permalink
Report sub exception in logs and make successful module updates visib…
Browse files Browse the repository at this point in the history
…le in logs
  • Loading branch information
Quetzacoalt91 committed Jul 5, 2024
1 parent 65d76be commit 82dcbdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/TaskRunner/Upgrade/UpgradeModules.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function run(): int
do {
$module_info = array_pop($listModules);
try {
$this->logger->debug($this->translator->trans('Upgrading module %module%...', ['%module%' => $module_info['name']]));
$this->logger->debug($this->translator->trans('Updating module %module%...', ['%module%' => $module_info['name']]));
$this->container->getModuleAdapter()->upgradeModule($module_info['id'], $module_info['name'], !empty($module_info['is_local']));
$this->logger->debug($this->translator->trans('The files of module %s have been upgraded.', [$module_info['name']]));
$this->logger->info($this->translator->trans('The module %s has been updated.', [$module_info['name']]));
} catch (UpgradeException $e) {
$this->handleException($e);
if ($e->getSeverity() === UpgradeException::SEVERITY_ERROR) {
Expand Down

0 comments on commit 82dcbdb

Please sign in to comment.