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

This commit is contained in:
Rohit Malhotra 2025-04-18 17:31:36 -04:00 committed by GitHub
parent 85e2b73eb4
commit 358166feb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(