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:
parent
ea858fcb55
commit
752055220f
|
@ -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 [];
|
||||||
|
|
Loading…
Reference in New Issue