Gave ourselves a bit more debug info. Hurrah for test-on-prod

This commit is contained in:
Jacob Henry 2019-03-02 23:41:07 -05:00
parent 0d19d87759
commit 9cae83d321
1 changed files with 4 additions and 1 deletions

View File

@ -277,7 +277,8 @@ class ClientWrapper(object):
# Get the payload
body_dict = await request.json()
payload = body_dict["payload"]
print("Got a normal request: {}".format(request))
print(await request.read())
print("Interaction received: {}".format(payload))
# Handle each action separately
@ -305,6 +306,8 @@ class ClientWrapper(object):
# Respond that everything is fine
return web.Response(status=200)
else:
print("Got a weird request: {}".format(request))
print(await request.read())
# If we can't read it, get mad
return web.Response(status=400)