playground-tools icon indicating copy to clipboard operation
playground-tools copied to clipboard

wp-now: output the HTTP requests into a file

Open sejas opened this issue 2 years ago • 2 comments

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.

sejas avatar Aug 18 '23 10:08 sejas

Or even a flag to make logging to the console optional would be helpful.

josephscott avatar Aug 18 '23 14:08 josephscott

I like the flag approach. It could support multiple types of log output: requests, PHP errors, etc.

danielbachhuber avatar Aug 18 '23 14:08 danielbachhuber