Log the payload sent temporarily in order to help with debugging

This commit is contained in:
sabaimran 2024-12-17 15:37:42 -08:00
parent 7ca2553d17
commit bcc1bc6854

View file

@ -232,6 +232,7 @@ async def auth(request: Request):
if verified_data.status_code != 200: if verified_data.status_code != 200:
logger.error(f"Token request failed: {verified_data.text}") logger.error(f"Token request failed: {verified_data.text}")
logger.error(f"Payload sent: {payload}")
try: try:
error_json = verified_data.json() error_json = verified_data.json()
logger.error(f"Error response JSON for Google verification: {error_json}") logger.error(f"Error response JSON for Google verification: {error_json}")