Browse Source
Merge pull request #8284 from nextcloud/lib_log-storage-test-failed
External storage test: log exceptions
pull/8612/head
Roeland Jago Douma
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|
} |
|
|
|
|