aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-01 22:45:31 +0200
committerGitHub <noreply@github.com>2024-07-01 22:45:31 +0200
commit55f3e53695933bbc2d928185694cd1b67fd46fef (patch)
treef41732646af98274e8262b360fc2b62e563fe8c9 /lib
parent5270ffc3a5ad590c780d792cc004fdd00c366233 (diff)
parent9a5ab7330a5c83f84f596690e8b22693686ebdd8 (diff)
downloadnextcloud-server-55f3e53695933bbc2d928185694cd1b67fd46fef.tar.gz
nextcloud-server-55f3e53695933bbc2d928185694cd1b67fd46fef.zip
Merge pull request #46169 from nextcloud/enh/support-profiler-in-occ
Support profiler in occ commands
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppManager.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php
index 0786fbded20..52a88a724ff 100644
--- a/lib/private/App/AppManager.php
+++ b/lib/private/App/AppManager.php
@@ -388,8 +388,8 @@ class AppManager implements IAppManager {
if ($appPath === false) {
return;
}
- $eventLogger = \OC::$server->get(\OCP\Diagnostics\IEventLogger::class);
- $eventLogger->start("bootstrap:load_app:$app", "Load $app");
+ $eventLogger = \OC::$server->get(IEventLogger::class);
+ $eventLogger->start("bootstrap:load_app:$app", "Load app: $app");
// in case someone calls loadApp() directly
\OC_App::registerAutoloading($app, $appPath);
@@ -400,8 +400,6 @@ class AppManager implements IAppManager {
$hasAppPhpFile = is_file($appPath . '/appinfo/app.php');
- $eventLogger = \OC::$server->get(IEventLogger::class);
- $eventLogger->start('bootstrap:load_app_' . $app, 'Load app: ' . $app);
if ($isBootable && $hasAppPhpFile) {
$this->logger->error('/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.', [
'app' => $app,