Is there a way to get the google app engine developer tool to show post data?
I'm having a heck of a time debugging my task queues in Google app engine as a bug in the task queue becomes very hard to track down as I don't kno开发者_C百科w exactly what data is being posted.
I was hoping that I could get the dev_appserver.py application to display the POST data in the request line, but I can't seem to find a way to do that. The documentation offers up a debug option, but it doesn't seem to print the post data.
Does anyone know if this is possible?
You could use the logging
library to print the body of the request like this (if you're using webapp):
import logging
class YourRequestHandler(webapp.RequestHandler):
def post(self):
logging.info("body:\n%s" % self.request.body)
精彩评论