summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-09-19 21:49:19 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-09-20 08:23:45 -0100
commitb5dcd048ae85cfe8d7fb22663f1955efbdca7921 (patch)
tree0aba878eec4ee9222e4de538f229be908535cd3c /apps/files_sharing/lib
parentc6c06d517cfe80f1a75c7eff2b66fb9cefea86d9 (diff)
downloadnextcloud-server-b5dcd048ae85cfe8d7fb22663f1955efbdca7921.tar.gz
nextcloud-server-b5dcd048ae85cfe8d7fb22663f1955efbdca7921.zip
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php b/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php
index 1d58629b98f..75606960e4b 100644
--- a/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php
+++ b/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php
@@ -33,6 +33,7 @@ use OCP\IDBConnection;
use OCP\OCM\Exceptions\OCMProviderException;
use OCP\OCM\IOCMDiscoveryService;
use OCP\OCS\IDiscoveryService;
+use Psr\Log\LoggerInterface;
class FederatedSharesDiscoverJob extends TimedJob {
@@ -40,7 +41,8 @@ class FederatedSharesDiscoverJob extends TimedJob {
ITimeFactory $time,
private IDBConnection $connection,
private IDiscoveryService $discoveryService,
- private IOCMDiscoveryService $ocmDiscoveryService
+ private IOCMDiscoveryService $ocmDiscoveryService,
+ private LoggerInterface $logger,
) {
parent::__construct($time);
$this->setInterval(86400);
@@ -58,6 +60,7 @@ class FederatedSharesDiscoverJob extends TimedJob {
try {
$this->ocmDiscoveryService->discover($row['remote'], true);
} catch (OCMProviderException $e) {
+ $this->logger->info('exception while running files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob', ['exception' => $e]);
}
}
$result->closeCursor();