Merge pull request #4566 from nextcloud/cache-gc-no-fs

dont spam log when request can't access filesystem
This commit is contained in:
Morris Jobke 2017-04-28 23:11:08 -03:00 committed by GitHub
commit 424d62d630
1 changed files with 2 additions and 0 deletions

View File

@ -806,6 +806,8 @@ class OC {
} catch (\OC\ServerNotAvailableException $e) {
// not a GC exception, pass it on
throw $e;
} catch (\OC\ForbiddenException $e) {
// filesystem blocked for this request, ignore
} catch (\Exception $e) {
// a GC exception should not prevent users from using OC,
// so log the exception