From 8e9726be5c39e5df7956e8539f201e4213ab6aba Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 30 Jun 2020 09:43:40 +0200 Subject: [PATCH] Log usages of the deprecated app.php file Signed-off-by: Christoph Wurst --- lib/private/legacy/OC_App.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index 85fd8c99f05..f4308dae2fd 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -150,6 +150,9 @@ class OC_App { self::registerAutoloading($app, $appPath); if (is_file($appPath . '/appinfo/app.php')) { + \OC::$server->getLogger()->debug('/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.', [ + 'app' => $app, + ]); \OC::$server->getEventLogger()->start('load_app_' . $app, 'Load app: ' . $app); try { self::requireAppFile($app); -- 2.39.5