diff options
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 023b3e6972c..6f81e6175f3 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -447,10 +447,12 @@ class Updater extends BasicEmitter { $this->log, \OC::$server->getConfig() ); + $this->emit('\OC\Updater', 'checkAppStoreAppBefore', [$app]); if (Installer::isUpdateAvailable($app, \OC::$server->getAppFetcher())) { $this->emit('\OC\Updater', 'upgradeAppStoreApp', [$app]); $installer->updateAppstoreApp($app); } + $this->emit('\OC\Updater', 'checkAppStoreApp', [$app]); } catch (\Exception $ex) { $this->log->logException($ex, ['app' => 'core']); } @@ -578,8 +580,14 @@ class Updater extends BasicEmitter { $this->listen('\OC\Updater', 'thirdPartyAppDisabled', function ($app) use ($log) { $log->info('\OC\Updater::thirdPartyAppDisabled: Disabled 3rd-party app: ' . $app, ['app' => 'updater']); }); + $this->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use($log) { + $log->info('\OC\Updater::checkAppStoreAppBefore: Checking for update of app "' . $app . '" in appstore', ['app' => 'updater']); + }); $this->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use($log) { - $log->info('\OC\Updater::upgradeAppStoreApp: Update 3rd-party app: ' . $app, ['app' => 'updater']); + $log->info('\OC\Updater::upgradeAppStoreApp: Update app "' . $app . '" from appstore', ['app' => 'updater']); + }); + $this->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use($log) { + $log->info('\OC\Updater::checkAppStoreApp: Checked for update of app "' . $app . '" in appstore', ['app' => 'updater']); }); $this->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($log) { $log->info('\OC\Updater::appUpgradeCheckBefore: Checking updates of apps', ['app' => 'updater']); |