Log mount and storage issues in getFileInfo

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-05-02 15:11:59 +02:00 committed by Roeland Jago Douma
parent d6dea09f48
commit 0bfda02e14
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 3 additions and 0 deletions

View File

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