diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-12-08 18:16:45 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-12-08 18:17:06 +0100 |
commit | dbb1eef44698b2cd36f5dbe1dc57abd721dd499c (patch) | |
tree | 4a569068b1e0a4b65c3ce85af0946a5c10d8d840 /lib | |
parent | 2959487f71c8226036ac3614bce27e3bbe60418a (diff) | |
download | nextcloud-server-dbb1eef44698b2cd36f5dbe1dc57abd721dd499c.tar.gz nextcloud-server-dbb1eef44698b2cd36f5dbe1dc57abd721dd499c.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/Fetcher.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index 3716b7b7958..78c36d6123c 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -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 []; } } |