diff --git a/services/schema.py b/services/schema.py index 265e1782..e6100e3d 100644 --- a/services/schema.py +++ b/services/schema.py @@ -13,7 +13,7 @@ async def request_graphql_data(gql, url=AUTH_URL, headers=None): if headers is None: headers = {"Content-Type": "application/json"} try: - logger.debug(f"{url}:\n{headers}\n{gql}") + # logger.debug(f"{url}:\n{headers}\n{gql}") async with httpx.AsyncClient() as client: response = await client.post(url, json=gql, headers=headers) if response.status_code == 200: @@ -23,6 +23,8 @@ async def request_graphql_data(gql, url=AUTH_URL, headers=None): logger.error(f"{url} response: {data}") else: return data + else: + logger.error(f"{url}: {response.status_code} {response.text}") except Exception as _e: # Handling and logging exceptions during authentication check import traceback