Commits

Matthew Schinckel committed 49aaf07

Log the body of all failed requests except Unauth.

Comments (0)

Files changed (1)

rest_api/middleware.py

             len(response.content) or '-',
             time_spent.microseconds / 1000000.0,
         ))
-        if int(response.status_code) > 404:
+        if int(response.status_code) > 401:
             logging.debug("Request: \n%s" % request.raw_post_data)
             # logging.debug("Response: \n%s" % response.content)
         return response