logsdebug
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
Untone 2024-12-11 22:52:25 +03:00
parent bffc48e5d9
commit 8f5ee384ff

View File

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