use report instead of logger

This commit is contained in:
Denis Duliçi
2021-06-08 23:33:17 +03:00
parent 5ddfe315f4
commit 8dae25abc5
8 changed files with 14 additions and 19 deletions

View File

@ -53,7 +53,7 @@ class InstallExtraModules
$this->dispatch(new InstallModule($alias, $event->company_id, $event->locale));
} catch (\Exception $e) {
logger($e->getMessage());
report($e);
// Stop the propagation of event if the required module failed to install
return false;

View File

@ -58,7 +58,7 @@ class UpdateExtraModules
if (true !== $result = Console::run($command)) {
$message = !empty($result) ? $result : trans('modules.errors.finish', ['module' => $alias]);
logger($message);
report($message);
// Stop the propagation of event if the required module failed to update
return false;