summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-02 15:05:33 +0100
committerGitHub <noreply@github.com>2018-01-02 15:05:33 +0100
commitd97341d986955777a666cc8b13213b544a8b072d (patch)
tree5dac22b2c81b619f9f82f3765f30804af6635ff8 /lib
parentaac9a1c41adda69e8a1e4e2610b2a1f34b3284db (diff)
parentc5f852d90c57c71cd862fbffe46efc642a617237 (diff)
downloadnextcloud-server-d97341d986955777a666cc8b13213b544a8b072d.tar.gz
nextcloud-server-d97341d986955777a666cc8b13213b544a8b072d.zip
Merge pull request #7660 from nextcloud/fix-7646
Also log exception for failed appstore request
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index cd33d228c4b..8bf9ca15349 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -36,6 +36,7 @@ use OCP\Files\NotFoundException;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\ILogger;
+use OCP\Util;
abstract class Fetcher {
const INVALIDATE_AFTER_SECONDS = 300;
@@ -170,7 +171,7 @@ abstract class Fetcher {
$file->putContent(json_encode($responseJson));
return json_decode($file->getContent(), true)['data'];
} catch (ConnectException $e) {
- $this->logger->info('Could not connect to appstore', ['app' => 'appstoreFetcher']);
+ $this->logger->logException($e, ['app' => 'appstoreFetcher', 'level' => Util::INFO, 'message' => 'Could not connect to appstore']);
return [];
} catch (\Exception $e) {
return [];