aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-02-09 16:05:59 +0100
committerRobin Appelman <robin@icewind.nl>2023-02-09 17:41:43 +0100
commitfe78ef7a38986cd54d4daaeb1dcad9ebe26e5afc (patch)
treea027ebea986e789c9c0b8109a44b3dece69e07eb /lib/private/AppFramework
parent08e7b20c43ec44d027a047da0acb07eea96a1bad (diff)
downloadnextcloud-server-fe78ef7a38986cd54d4daaeb1dcad9ebe26e5afc.tar.gz
nextcloud-server-fe78ef7a38986cd54d4daaeb1dcad9ebe26e5afc.zip
instrumentation for app booting
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Bootstrap/Coordinator.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/AppFramework/Bootstrap/Coordinator.php b/lib/private/AppFramework/Bootstrap/Coordinator.php
index 6f2e8b91a88..f41b734a25b 100644
--- a/lib/private/AppFramework/Bootstrap/Coordinator.php
+++ b/lib/private/AppFramework/Bootstrap/Coordinator.php
@@ -104,8 +104,8 @@ class Coordinator {
}
$apps = [];
foreach ($appIds as $appId) {
- $this->eventLogger->start("bootstrap:register_app:$appId", '');
- $this->eventLogger->start("bootstrap:register_app:$appId:autoloader", '');
+ $this->eventLogger->start("bootstrap:register_app:$appId", "Register $appId");
+ $this->eventLogger->start("bootstrap:register_app:$appId:autoloader", "Setup autoloader for $appId");
/*
* First, we have to enable the app's autoloader
*
@@ -120,14 +120,14 @@ class Coordinator {
$this->eventLogger->end("bootstrap:register_app:$appId:autoloader");
/*
- * Next we check if there is an application class and it implements
+ * Next we check if there is an application class, and it implements
* the \OCP\AppFramework\Bootstrap\IBootstrap interface
*/
$appNameSpace = App::buildAppNamespace($appId);
$applicationClassName = $appNameSpace . '\\AppInfo\\Application';
try {
if (class_exists($applicationClassName) && in_array(IBootstrap::class, class_implements($applicationClassName), true)) {
- $this->eventLogger->start("bootstrap:register_app:$appId:application", '');
+ $this->eventLogger->start("bootstrap:register_app:$appId:application", "Load `Application` instance for $appId");
try {
/** @var IBootstrap|App $application */
$apps[$appId] = $application = $this->serverContainer->query($applicationClassName);
@@ -138,7 +138,7 @@ class Coordinator {
}
$this->eventLogger->end("bootstrap:register_app:$appId:application");
- $this->eventLogger->start("bootstrap:register_app:$appId:register", '');
+ $this->eventLogger->start("bootstrap:register_app:$appId:register", "`Application::register` for $appId");
$application->register($this->registrationContext->for($appId));
$this->eventLogger->end("bootstrap:register_app:$appId:register");
}
@@ -153,7 +153,7 @@ class Coordinator {
$this->eventLogger->end("bootstrap:register_app:$appId");
}
- $this->eventLogger->start('bootstrap:register_apps:apply', '');
+ $this->eventLogger->start('bootstrap:register_apps:apply', 'Apply all the registered service by apps');
/**
* Now that all register methods have been called, we can delegate the registrations
* to the actual services
@@ -190,7 +190,7 @@ class Coordinator {
* the instance was already created for register, but any other
* (legacy) code will now do their magic via the constructor.
*/
- $this->eventLogger->start('bootstrap:boot_app_' . $appId, '');
+ $this->eventLogger->start('bootstrap:boot_app:' . $appId, "Call `Application::boot` for $appId");
try {
/** @var App $application */
$application = $this->serverContainer->query($applicationClassName);
@@ -208,7 +208,7 @@ class Coordinator {
'exception' => $e,
]);
}
- $this->eventLogger->end('bootstrap:boot_app_' . $appId);
+ $this->eventLogger->end('bootstrap:boot_app:' . $appId);
}
public function isBootable(string $appId) {