There was an error while loading. Please reload this page.
2 parents 570c25c + 81fef4d commit c25daf5Copy full SHA for c25daf5
1 file changed
lib/private/Files/Cache/Storage.php
@@ -30,6 +30,7 @@
30
namespace OC\Files\Cache;
31
32
use OCP\Files\Storage\IStorage;
33
+use Psr\Log\LoggerInterface;
34
35
/**
36
* Handle the mapping between the string and numeric storage ids
@@ -175,6 +176,9 @@ public function getAvailability() {
175
176
*/
177
public function setAvailability($isAvailable, int $delay = 0) {
178
$available = $isAvailable ? 1 : 0;
179
+ if (!$isAvailable) {
180
+ \OC::$server->get(LoggerInterface::class)->info('Storage with ' . $this->storageId . ' marked as unavailable', ['app' => 'lib']);
181
+ }
182
183
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();
184
$query->update('storages')
0 commit comments