Merge pull request #9378 from nextcloud/backport/9364/swift-v3

[swiftv3] Log mount and storage issues in getFileInfo
This commit is contained in:
Roeland Jago Douma 2018-05-03 12:32:13 +02:00 committed by GitHub
commit 4cfed32803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1360,6 +1360,7 @@ class View {
$mount = Filesystem::getMountManager()->find($path); $mount = Filesystem::getMountManager()->find($path);
if (!$mount) { if (!$mount) {
\OC::$server->getLogger()->warning('Mountpoint not found for path: ' . $path);
return false; return false;
} }
$storage = $mount->getStorage(); $storage = $mount->getStorage();
@ -1391,6 +1392,8 @@ class View {
} }
return $info; return $info;
} else {
\OC::$server->getLogger()->warning('Storage not valid for mountpoint: ' . $mount->getMountPoint());
} }
return false; return false;