mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
Merge pull request #8284 from nextcloud/lib_log-storage-test-failed
External storage test: log exceptions
This commit is contained in:
commit
7f736923d9
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue