aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-03-25 09:36:12 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-03-25 09:36:12 +0100
commit0ea2913ac330d9c9dced8c202dc9fc9d2ff4fcf7 (patch)
tree81285a4e88dd0b3dc9eb046dacb4c906018fcaae /lib
parenta0a957c9619c2df142d4eab1df35b1f69008f23b (diff)
downloadnextcloud-server-0ea2913ac330d9c9dced8c202dc9fc9d2ff4fcf7.tar.gz
nextcloud-server-0ea2913ac330d9c9dced8c202dc9fc9d2ff4fcf7.zip
fix: Log exceptions thrown by setup checks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/SetupCheck/SetupCheckManager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/SetupCheck/SetupCheckManager.php b/lib/private/SetupCheck/SetupCheckManager.php
index fbf57d81fd3..8f4efa6794b 100644
--- a/lib/private/SetupCheck/SetupCheckManager.php
+++ b/lib/private/SetupCheck/SetupCheckManager.php
@@ -51,6 +51,7 @@ class SetupCheckManager implements ISetupCheckManager {
$setupResult = $setupCheckObject->run();
} catch (\Throwable $t) {
$setupResult = SetupResult::error("An exception occured while running the setup check:\n$t");
+ $this->logger->error('Exception running check '.get_class($setupCheckObject).': '.$t->getMessage(), ['exception' => $t]);
}
$setupResult->setName($setupCheckObject->getName());
$category = $setupCheckObject->getCategory();