1

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 know 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?

David Underhill
  • 15,896
  • 7
  • 53
  • 61
Simon
  • 1,819
  • 3
  • 18
  • 26

1 Answers1

1

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)
David Underhill
  • 15,896
  • 7
  • 53
  • 61