Skip to content

Commit

Permalink
remove useless logs
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Jul 12, 2023
1 parent 4a91c4f commit 20bbb16
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 20bbb16

Please sign in to comment.