diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-03-01 20:32:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 20:32:09 +0100 |
commit | 7f736923d903e037a32a9fa45bfb98efec990d3e (patch) | |
tree | 0eb34a1c9d5dc00b9810a849312ac34b2b10bbc2 /lib | |
parent | d70a35b382df4dc62e8736164079dcf9d8e4b668 (diff) | |
parent | dc99442bc16972046522888002ad379c170c138a (diff) | |
download | nextcloud-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.php | 3 |
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; } } |