Commits

Matthew Schinckel committed f2c54db Merge

Merge

Comments (0)

Files changed (1)

rest_api/middleware.py

     def process_request(self, request):
         self._start_time = datetime.datetime.now()
         # if request.raw_post_data:
-        # logging.log(logging.DEBUG - 1, request.raw_post_data)
+        #     logging.log(logging.DEBUG - 1, request.raw_post_data)
     
     def process_response(self, request, response):
         time_spent = datetime.datetime.now() - self._start_time
             len(response.content) or '-',
             time_spent.microseconds / 1000000.0,
         ))
-        # import pdb; pdb.set_trace()
         if int(response.status_code) > 404:
             logging.debug("Request: \n%s" % request.raw_post_data)
             # logging.debug("Response: \n%s" % response.content)