Skip to content

Commit

Permalink
Log the payload sent temporarily in order to help with debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Dec 17, 2024
1 parent 7ca2553 commit bcc1bc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/khoj/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ async def auth(request: Request):

if verified_data.status_code != 200:
logger.error(f"Token request failed: {verified_data.text}")
logger.error(f"Payload sent: {payload}")
try:
error_json = verified_data.json()
logger.error(f"Error response JSON for Google verification: {error_json}")
Expand Down

0 comments on commit bcc1bc6

Please sign in to comment.