also log exception
This commit is contained in:
parent
ae71f80f4a
commit
816cd66b4b
|
@ -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);
|
$scanner->scan($relativePath, \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG | \OC\Files\Cache\Scanner::REUSE_SIZE);
|
||||||
} catch (StorageNotAvailableException $e) {
|
} catch (StorageNotAvailableException $e) {
|
||||||
$this->logger->error('Storage ' . $storage->getId() . ' not available');
|
$this->logger->error('Storage ' . $storage->getId() . ' not available');
|
||||||
|
$this->logger->logException($e);
|
||||||
$this->emit('\OC\Files\Utils\Scanner', 'StorageNotAvailable', [$e]);
|
$this->emit('\OC\Files\Utils\Scanner', 'StorageNotAvailable', [$e]);
|
||||||
}
|
}
|
||||||
if (!$isDbLocking) {
|
if (!$isDbLocking) {
|
||||||
|
|
Loading…
Reference in New Issue