mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add debug logging when running setup checks to help with debugging slow results
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
968b82cacc
commit
be11ffd86a
1 changed files with 6 additions and 4 deletions
|
|
@ -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])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue