Merge pull request #9364 from nextcloud/log-invalid-storage
Log mount and storage issues in getFileInfo
This commit is contained in:
commit
2780bb0b2b
|
@ -1361,6 +1361,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();
|
||||||
|
@ -1392,6 +1393,8 @@ class View {
|
||||||
}
|
}
|
||||||
|
|
||||||
return $info;
|
return $info;
|
||||||
|
} else {
|
||||||
|
\OC::$server->getLogger()->warning('Storage not valid for mountpoint: ' . $mount->getMountPoint());
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue