Merge pull request #8284 from nextcloud/lib_log-storage-test-failed
External storage test: log exceptions
This commit is contained in:
commit
7f736923d9
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue