module-rest icon indicating copy to clipboard operation
module-rest copied to clipboard

Add parameter to not log Response during executing REST requests

Open JGladykowski-modus opened this issue 7 years ago • 1 comments

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.

JGladykowski-modus avatar May 08 '18 12:05 JGladykowski-modus

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?

SamMousa avatar May 10 '18 14:05 SamMousa