Closed adamreese closed 2 years ago
Um... this has the potential to leak significant user info into the logs, maybe not a big deal in a R&D environment but could be an issue in a PaaS environment. Also potentially messy if the body contains large binary data such as a photograph - how does it look if that happens, does the formatter just elide the blob?
Actually, I guess it the leakage shouldn't be an issue because it's debug only. Ignore that.
I was gonna raise the same concern that @itowlson did, but then @itowlson came back and convinced me that in debug mode this is fine. LOL.
Log the body of the response if 'location' or 'content-type' are not found.