From 206aff41acd7c6124aea184d0c0e62a4ce13ed09 Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Wed, 21 May 2025 14:20:47 +0300 Subject: [PATCH] fix: reduce loglevel for API requests from warning to info to not spam logs Signed-off-by: Andrey Borysenko --- lib/Service/GitlabAPIService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/GitlabAPIService.php b/lib/Service/GitlabAPIService.php index 8760bab..b48034f 100644 --- a/lib/Service/GitlabAPIService.php +++ b/lib/Service/GitlabAPIService.php @@ -311,13 +311,13 @@ public function request(?GitlabAccount $account, string $baseUrl, string $endPoi return json_decode($body, true); } } catch (ServerException|ClientException $e) { - $this->logger->warning('GitLab API error : ' . $e->getMessage(), ['app' => Application::APP_ID]); + $this->logger->info('GitLab API error : ' . $e->getMessage(), ['app' => Application::APP_ID]); if ($e->getCode() == 401) { return ['error' => $this->l10n->t('Bad credentials'), 'code' => 401]; } return ['error' => 'Gitlab API error, please check the server logs for more details', 'code' => $e->getCode()]; } catch (ConnectException $e) { - $this->logger->warning('GitLab API error : ' . $e->getMessage(), ['app' => Application::APP_ID]); + $this->logger->info('GitLab API error : ' . $e->getMessage(), ['app' => Application::APP_ID]); return ['error' => 'Connection error, please check the server logs for more details', 'code' => 500]; } }