Gave ourselves a bit more debug info. Hurrah for test-on-prod
This commit is contained in:
+4
-1
@@ -277,7 +277,8 @@ class ClientWrapper(object):
|
|||||||
# Get the payload
|
# Get the payload
|
||||||
body_dict = await request.json()
|
body_dict = await request.json()
|
||||||
payload = body_dict["payload"]
|
payload = body_dict["payload"]
|
||||||
|
print("Got a normal request: {}".format(request))
|
||||||
|
print(await request.read())
|
||||||
print("Interaction received: {}".format(payload))
|
print("Interaction received: {}".format(payload))
|
||||||
|
|
||||||
# Handle each action separately
|
# Handle each action separately
|
||||||
@@ -305,6 +306,8 @@ class ClientWrapper(object):
|
|||||||
# Respond that everything is fine
|
# Respond that everything is fine
|
||||||
return web.Response(status=200)
|
return web.Response(status=200)
|
||||||
else:
|
else:
|
||||||
|
print("Got a weird request: {}".format(request))
|
||||||
|
print(await request.read())
|
||||||
# If we can't read it, get mad
|
# If we can't read it, get mad
|
||||||
return web.Response(status=400)
|
return web.Response(status=400)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user