File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030use OCP \IUserSession ;
3131use OCP \Share \Exceptions \ShareNotFound ;
3232use OCP \Share \IManager as ShareManager ;
33- use Psr \Log \LoggerInterface ;
3433use ReflectionException ;
3534
3635class SessionMiddleware extends Middleware {
@@ -44,7 +43,6 @@ public function __construct(
4443 private IRootFolder $ rootFolder ,
4544 private ShareManager $ shareManager ,
4645 private IL10N $ l10n ,
47- private LoggerInterface $ logger ,
4846 ) {
4947 }
5048
@@ -101,15 +99,11 @@ private function assertDocumentSession(ISessionAwareController $controller): voi
10199
102100 $ session = $ this ->sessionService ->getValidSession ($ documentId , $ sessionId , $ token );
103101 if (!$ session ) {
104- // We spotted occurrences of this in combination with out-of-sync situations, so let's log it for now.
105- $ this ->logger ->error ('Could not find document session for document id ' . $ documentId . ' and session id ' . $ sessionId );
106102 throw new InvalidSessionException ();
107103 }
108104
109105 $ document = $ this ->documentService ->getDocument ($ documentId );
110106 if (!$ document ) {
111- // We spotted occurrences of this in combination with out-of-sync situations, so let's log it for now.
112- $ this ->logger ->error ('Could not find document for documentId ' . $ documentId );
113107 throw new InvalidSessionException ();
114108 }
115109
You can’t perform that action at this time.
0 commit comments