diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-01 22:45:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 22:45:31 +0200 |
commit | 55f3e53695933bbc2d928185694cd1b67fd46fef (patch) | |
tree | f41732646af98274e8262b360fc2b62e563fe8c9 /lib | |
parent | 5270ffc3a5ad590c780d792cc004fdd00c366233 (diff) | |
parent | 9a5ab7330a5c83f84f596690e8b22693686ebdd8 (diff) | |
download | nextcloud-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.php | 6 |
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, |