Don't spam the log when we could not properly connect to the appstore

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>
This commit is contained in:
Roeland Jago Douma 2017-12-29 15:55:05 +01:00
parent ea858fcb55
commit 752055220f
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ abstract class Fetcher {
$file->putContent(json_encode($responseJson)); $file->putContent(json_encode($responseJson));
return json_decode($file->getContent(), true)['data']; return json_decode($file->getContent(), true)['data'];
} catch (ConnectException $e) { } catch (ConnectException $e) {
$this->logger->logException($e, ['app' => 'appstoreFetcher']); $this->logger->info('Could not connect to appstore', ['app' => 'appstoreFetcher']);
return []; return [];
} catch (\Exception $e) { } catch (\Exception $e) {
return []; return [];