aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/SetupCheck
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-10-16 09:41:51 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-10-19 11:44:02 +0200
commitbe11ffd86a9d1052a014542382a0dae73308c6e4 (patch)
treeaafd10a38e591a2b4a60ca8f98d6f75d55ae2655 /lib/private/SetupCheck
parent968b82caccb78b30a89b76187e999973774cf62d (diff)
downloadnextcloud-server-be11ffd86a9d1052a014542382a0dae73308c6e4.tar.gz
nextcloud-server-be11ffd86a9d1052a014542382a0dae73308c6e4.zip
Add debug logging when running setup checks to help with debugging slow results
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/SetupCheck')
-rw-r--r--lib/private/SetupCheck/SetupCheckManager.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/SetupCheck/SetupCheckManager.php b/lib/private/SetupCheck/SetupCheckManager.php
index 1a7b5d555b9..0bf3dc39861 100644
--- a/lib/private/SetupCheck/SetupCheckManager.php
+++ b/lib/private/SetupCheck/SetupCheckManager.php
@@ -30,12 +30,13 @@ use OC\AppFramework\Bootstrap\Coordinator;
use OCP\Server;
use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\ISetupCheckManager;
+use Psr\Log\LoggerInterface;
class SetupCheckManager implements ISetupCheckManager {
- private Coordinator $coordinator;
-
- public function __construct(Coordinator $coordinator) {
- $this->coordinator = $coordinator;
+ public function __construct(
+ private Coordinator $coordinator,
+ private LoggerInterface $logger,
+ ) {
}
public function runAll(): array {
@@ -44,6 +45,7 @@ class SetupCheckManager implements ISetupCheckManager {
foreach ($setupChecks as $setupCheck) {
/** @var ISetupCheck $setupCheckObject */
$setupCheckObject = Server::get($setupCheck->getService());
+ $this->logger->debug('Running check '.get_class($setupCheckObject));
$setupResult = $setupCheckObject->run();
$category = $setupCheckObject->getCategory();
if (!isset($results[$category])) {