summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Collaborators/LookupPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Collaboration/Collaborators/LookupPlugin.php')
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index f675cece99e..3d118989cc6 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -33,9 +33,9 @@ use OCP\Collaboration\Collaborators\SearchResultType;
use OCP\Federation\ICloudIdManager;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
-use OCP\ILogger;
use OCP\IUserSession;
use OCP\Share\IShare;
+use Psr\Log\LoggerInterface;
class LookupPlugin implements ISearchPlugin {
@@ -47,14 +47,14 @@ class LookupPlugin implements ISearchPlugin {
private $currentUserRemote;
/** @var ICloudIdManager */
private $cloudIdManager;
- /** @var ILogger */
+ /** @var LoggerInterface */
private $logger;
public function __construct(IConfig $config,
IClientService $clientService,
IUserSession $userSession,
ICloudIdManager $cloudIdManager,
- ILogger $logger) {
+ LoggerInterface $logger) {
$this->config = $config;
$this->clientService = $clientService;
$this->cloudIdManager = $cloudIdManager;
@@ -96,8 +96,9 @@ class LookupPlugin implements ISearchPlugin {
try {
$remote = $this->cloudIdManager->resolveCloudId($lookup['federationId'])->getRemote();
} catch (\Exception $e) {
- $this->logger->error('Can not parse federated cloud ID "' . $lookup['federationId'] . '"');
- $this->logger->error($e->getMessage());
+ $this->logger->error('Can not parse federated cloud ID "' . $lookup['federationId'] . '"', [
+ 'exception' => $e,
+ ]);
continue;
}
if ($this->currentUserRemote === $remote) {