Skip to content

Commit

Permalink
Merge pull request #265 from nextcloud/backport/257/stable27
Browse files Browse the repository at this point in the history
[stable27] remove useless logs
  • Loading branch information
ArtificialOwl authored Jul 28, 2023
2 parents 3f51303 + 5e74e70 commit 52c82fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Service/RelatedService.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,8 @@ private function filterUnavailableResults(array $result): array {
try {
$current = $this->circlesManager->getCurrentFederatedUser();
} catch (FederatedUserNotFoundException $e) {
$this->circlesManager->startSession(); // it should not happen at this point, but we log if it does
$this->circlesManager->startSession(); // in case session is lost, restart fresh one
$current = $this->circlesManager->getCurrentFederatedUser();
$this->logger->warning('session restarted while filtering results', ['current' => $current]);
}

return array_filter($result, function (IRelatedResource $res) use ($current): bool {
Expand Down

0 comments on commit 52c82fe

Please sign in to comment.