aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-06-27 12:25:20 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-06-27 12:25:20 +0200
commit01dbb8fca2d6e0af48847e39048a529cc2e9fcb0 (patch)
tree5f3f34a664c3e96fda0f47b13618378c9127d44e /lib/private
parent02452712a20b9be2c638e9bea80102b9926d482b (diff)
downloadnextcloud-server-01dbb8fca2d6e0af48847e39048a529cc2e9fcb0.tar.gz
nextcloud-server-01dbb8fca2d6e0af48847e39048a529cc2e9fcb0.zip
fix(profiler): Remove bogus profiler event start
This fixes profiler event graph by removing an event start which had no matching end() call. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private')
-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,