diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php index 9b3bae0b9aab307c11a62f802917935379e2a992..85ca734c146ca88c1e61d39f62deb08ba871509e 100644 --- a/lib/private/files/utils/scanner.php +++ b/lib/private/files/utils/scanner.php @@ -174,6 +174,7 @@ class Scanner extends PublicEmitter { $scanner->scan($relativePath, \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG | \OC\Files\Cache\Scanner::REUSE_SIZE); } catch (StorageNotAvailableException $e) { $this->logger->error('Storage ' . $storage->getId() . ' not available'); + $this->logger->logException($e); $this->emit('\OC\Files\Utils\Scanner', 'StorageNotAvailable', [$e]); } if (!$isDbLocking) {