wp-cli / doctor-command

Diagnose problems within WordPress by running a series of checks for symptoms
MIT License
146 stars 22 forks source link

Introduce --verbose flag to provide more visibility into what checks are doing #170

Open bozzmedia opened 2 years ago

bozzmedia commented 2 years ago

Run wp doctor check command as follows: [root@server production]# wp doctor check --all --allow-root

Check begins but never gets past 12%

Running checks 12 % [====================> ] 0:16 / 2:15[root@server production]#

Expected behavior is that it completes or returns an error message.

Ideally a fix would complete the scan, alternatively provide a verbose error message.

Thanks!

PHP 8.0, WP 6.0.3, updated to latest production version of WP CLI and doctor package. Large WP site, 30,000 posts, 200,000 comments. 16GB 4CPU VPS on centos/apache

danielbachhuber commented 2 years ago

Thanks for the report, @bozzmedia !

I imagine it's processing a large body of data (files or in your database) for a specific check, and is slow to update the progress indicator.

It would be nice to have a --verbose flag that gives you more visibility into what each check is doing.