开发者

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜