module-rest
module-rest copied to clipboard
Add parameter to not log Response during executing REST requests
REST requests (ex. sendPOST) always output response , through execute method: $this->debugSection("Response", $printedResponse);
However our tests do a lot of requests, and in return get whole body of web page, which pollutes log.
This is why I would like to add parameter, which suppresses printing whole response. If such contribution would be welcomed, I can provide pull request.
That output is only enabled in debug mode? If changes are needed here, would it not make most sense to introduce some kind of debug verbosity setting instead of creating individual flags?