diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-11 13:35:17 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-11 13:35:17 -0500 |
commit | caa0ae94e8a26a05df8542d29164b610bf031eac (patch) | |
tree | 31b6d45430a590e6ebd96255ac8b28e42b333509 /lib/private/Updater.php | |
parent | 23b6f0e4d72f0a70eec9b4ba69ba9e5a0cb72731 (diff) | |
download | nextcloud-server-caa0ae94e8a26a05df8542d29164b610bf031eac.tar.gz nextcloud-server-caa0ae94e8a26a05df8542d29164b610bf031eac.zip |
Proper logging for appstore updates
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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']); |