Don't log the stack trace for ConnectException
The stack trace for ConnectException could contain the old apps.json content and is probably huge. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
2959487f71
commit
dbb1eef446
1 changed files with 2 additions and 2 deletions
|
@ -174,10 +174,10 @@ abstract class Fetcher {
|
|||
$file->putContent(json_encode($responseJson));
|
||||
return json_decode($file->getContent(), true)['data'];
|
||||
} catch (ConnectException $e) {
|
||||
$this->logger->logException($e, ['app' => 'appstoreFetcher', 'level' => ILogger::INFO, 'message' => 'Could not connect to appstore']);
|
||||
$this->logger->warning('Could not connect to appstore: ' . $e->getMessage(), ['app' => 'appstoreFetcher']);
|
||||
return [];
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->logException($e, ['app' => 'appstoreFetcher', 'level' => ILogger::INFO]);
|
||||
$this->logger->logException($e, ['app' => 'appstoreFetcher', 'level' => ILogger::WARN]);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue