mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #18289 from nextcloud/bug/18203/dont-log-exception-on-connect-exception
Don't log the stack trace for ConnectException
This commit is contained in:
commit
95ceff44a2
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