Skip to content
Snippets Groups Projects
Unverified Commit dbb1eef4 authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

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: default avatarDaniel Kesselberg <mail@danielkesselberg.de>
parent 2959487f
No related branches found
No related tags found
No related merge requests found
......@@ -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 [];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment