Skip to content

Commit

Permalink
Don't spam the log when we could not properly connect to the appstore
Browse files Browse the repository at this point in the history
If we can't connect to the appstore for some reason we don't have to log
the exception just an info entry is enough.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Dec 29, 2017
1 parent ea858fc commit 7520552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/App/AppStore/Fetcher/Fetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function get() {
$file->putContent(json_encode($responseJson));
return json_decode($file->getContent(), true)['data'];
} catch (ConnectException $e) {
$this->logger->logException($e, ['app' => 'appstoreFetcher']);
$this->logger->info('Could not connect to appstore', ['app' => 'appstoreFetcher']);
return [];
} catch (\Exception $e) {
return [];
Expand Down

0 comments on commit 7520552

Please sign in to comment.