Skip to content

πŸ™Œ OpenHands: AI-Driven Development

[Logging]: Add warning logs for gitlab api (#7941)

Rohit Malhotra358166feb258
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(