Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove useless logs #257

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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