Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Sep 9, 2024
1 parent 282d01d commit ff24e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ def spotbot(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')

req_body = {}
logging.info(f"Received this: {req}")

try:
req_body = req.get_json()
req_body = req.get_body()
logging.info(f"Received JSON: {req_body}")
except ValueError:
logging.error('Invalid JSON received')
Expand Down

0 comments on commit ff24e0f

Please sign in to comment.