From 358166feb258e9649cdc373ba6d6b43816bf716c Mon Sep 17 00:00:00 2001 From: Rohit Malhotra Date: Fri, 18 Apr 2025 17:31:36 -0400 Subject: [PATCH] [Logging]: Add warning logs for gitlab api (#7941) --- openhands/integrations/gitlab/gitlab_service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openhands/integrations/gitlab/gitlab_service.py b/openhands/integrations/gitlab/gitlab_service.py index d265872ff1..a3390729ab 100644 --- a/openhands/integrations/gitlab/gitlab_service.py +++ b/openhands/integrations/gitlab/gitlab_service.py @@ -77,9 +77,12 @@ class GitLabService(GitService): except httpx.HTTPStatusError as e: if e.response.status_code == 401: raise AuthenticationError('Invalid GitLab token') + + logger.warning(f'Status error on GL API: {e}') raise UnknownException('Unknown error') - except httpx.HTTPError: + except httpx.HTTPError as e: + logger.warning(f'HTTP error on GL API: {e}') raise UnknownException('Unknown error') async def execute_graphql_query(