diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-09 09:05:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-09 09:05:31 +0100 |
commit | 95ceff44a20ec1ff43baf5e75873a0fd1c934c47 (patch) | |
tree | f5aee0998a75ff11d7b765960944d69bcea87106 /lib | |
parent | fb1f6b7d115f8161290044fa505a219eb8cc26fe (diff) | |
parent | dbb1eef44698b2cd36f5dbe1dc57abd721dd499c (diff) | |
download | nextcloud-server-95ceff44a20ec1ff43baf5e75873a0fd1c934c47.tar.gz nextcloud-server-95ceff44a20ec1ff43baf5e75873a0fd1c934c47.zip |
Merge pull request #18289 from nextcloud/bug/18203/dont-log-exception-on-connect-exception
Don't log the stack trace for ConnectException
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 []; } } |