summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-03-01 20:32:09 +0100
committerGitHub <noreply@github.com>2018-03-01 20:32:09 +0100
commit7f736923d903e037a32a9fa45bfb98efec990d3e (patch)
tree0eb34a1c9d5dc00b9810a849312ac34b2b10bbc2 /lib
parentd70a35b382df4dc62e8736164079dcf9d8e4b668 (diff)
parentdc99442bc16972046522888002ad379c170c138a (diff)
downloadnextcloud-server-7f736923d903e037a32a9fa45bfb98efec990d3e.tar.gz
nextcloud-server-7f736923d903e037a32a9fa45bfb98efec990d3e.zip
Merge pull request #8284 from nextcloud/lib_log-storage-test-failed
External storage test: log exceptions
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Common.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 56d683ffa25..c9a91a7c56a 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -449,8 +449,11 @@ abstract class Common implements Storage, ILockingStorage {
if ($this->stat('')) {
return true;
}
+ \OC::$server->getLogger()->info("External storage not available: stat() failed");
return false;
} catch (\Exception $e) {
+ \OC::$server->getLogger()->info("External storage not available: " . $e->getMessage());
+ \OC::$server->getLogger()->logException($e, ['level' => \OCP\Util::DEBUG]);
return false;
}
}