From: Robin Appelman Date: Fri, 27 Nov 2015 13:28:15 +0000 (+0100) Subject: also log exception X-Git-Tag: v9.0beta1~653^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=816cd66b4b88a4aa7dbee51952e30abdfacc47da;p=nextcloud-server.git also log exception --- diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php index 9b3bae0b9aa..85ca734c146 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) {