Skip to content

Commit bc78b5f

Browse files
committed
Remove logging
1 parent 68783f3 commit bc78b5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Controller/LockingController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ public function lockFolder(int $id): DataResponse {
9191
}
9292

9393
if ($userFolder->getId() === $id) {
94-
$e = new OCSForbiddenException($this->l10n->t('You are not allowed to lock the root'));
95-
$this->logger->error($e->getMessage(), ['exception' => $e]);
96-
throw $e;
94+
throw new OCSForbiddenException($this->l10n->t('You are not allowed to lock the root'));
9795
}
9896

9997
$nodes = $userFolder->getById($id);

0 commit comments

Comments
 (0)