From c8331fdb775d722b3ff96ab0fa8381924f523407 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 4 Jul 2025 11:02:06 +0200 Subject: [PATCH] Revert "debug(SessionMiddleware): Log if we have an invalid session" This reverts commit 7db6defdc579399b90d80a5a85521fcd843ceeca. Signed-off-by: Max --- lib/Middleware/SessionMiddleware.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/Middleware/SessionMiddleware.php b/lib/Middleware/SessionMiddleware.php index b6cf4cb5a65..6ed807ce4bc 100644 --- a/lib/Middleware/SessionMiddleware.php +++ b/lib/Middleware/SessionMiddleware.php @@ -30,7 +30,6 @@ use OCP\IUserSession; use OCP\Share\Exceptions\ShareNotFound; use OCP\Share\IManager as ShareManager; -use Psr\Log\LoggerInterface; use ReflectionException; class SessionMiddleware extends Middleware { @@ -44,7 +43,6 @@ public function __construct( private IRootFolder $rootFolder, private ShareManager $shareManager, private IL10N $l10n, - private LoggerInterface $logger, ) { } @@ -101,15 +99,11 @@ private function assertDocumentSession(ISessionAwareController $controller): voi $session = $this->sessionService->getValidSession($documentId, $sessionId, $token); if (!$session) { - // We spotted occurrences of this in combination with out-of-sync situations, so let's log it for now. - $this->logger->error('Could not find document session for document id' . $documentId . ' and session id ' . $sessionId); throw new InvalidSessionException(); } $document = $this->documentService->getDocument($documentId); if (!$document) { - // We spotted occurrences of this in combination with out-of-sync situations, so let's log it for now. - $this->logger->error('Could not find document for documentId ' . $documentId); throw new InvalidSessionException(); }