Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-11 21:35:17 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-05-11 21:35:17 +0300
commitcaa0ae94e8a26a05df8542d29164b610bf031eac (patch)
tree31b6d45430a590e6ebd96255ac8b28e42b333509 /core/ajax
parent23b6f0e4d72f0a70eec9b4ba69ba9e5a0cb72731 (diff)
Proper logging for appstore updates
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 37abdc5dc3b..d23e3b0d56d 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -160,6 +160,15 @@ if (OC::checkUpgrade(false)) {
$updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Checking updates of apps'));
});
+ $updater->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use ($eventSource, $l) {
+ $eventSource->send('success', (string)$l->t('Checking for update of app "%s" in appstore', [$app]));
+ });
+ $updater->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use ($eventSource, $l) {
+ $eventSource->send('success', (string)$l->t('Update app "%s" from appstore', [$app]));
+ });
+ $updater->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use ($eventSource, $l) {
+ $eventSource->send('success', (string)$l->t('Checked for update of app "%s" in appstore', [$app]));
+ });
$updater->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Checking whether the database schema for %s can be updated (this can take a long time depending on the database size)', [$app]));
});