From 0bfda02e14a17bd350e053207bd690c7028811f2 Mon Sep 17 00:00:00 2001
From: Robin Appelman <robin@icewind.nl>
Date: Wed, 2 May 2018 15:11:59 +0200
Subject: [PATCH] Log mount and storage issues in getFileInfo

Signed-off-by: Robin Appelman <robin@icewind.nl>
---
 lib/private/Files/View.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index aaf14b4d7e0..62f845e7777 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -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;
-- 
GitLab