playground-tools
playground-tools copied to clipboard
wp-now: output the HTTP requests into a file
We were printing the HTTP requests here: https://github.com/WordPress/playground-tools/commit/6c532ef2e660d5bd03914be36cc196e69e7d0521#diff-ba038070d84a1e22ba372c62ab49b81244f5eac4d46020495c37ed4cf7a74f01R41-R46
And removed them here: https://github.com/WordPress/playground-tools/commit/47bacf3f22e25665fc7a149c2f5b877c429076b8
The reason was to make the console output less noisy.
We can add a parameter to log the requests into a file.
Or even a flag to make logging to the console optional would be helpful.
I like the flag approach. It could support multiple types of log output: requests, PHP errors, etc.