Automattic / team51-cli

A tool for provisioning and connecting GitHub repos, Pressable WordPress sites and DeployHQ.
MIT License
12 stars 0 forks source link

Refactor the php-error command to use the new endpoint for logs #184

Open tiagonoronha opened 1 year ago

tiagonoronha commented 1 year ago

New endpoint: https://my.pressable.com/documentation/api/v1#get-php-logs

Command: https://github.com/Automattic/team51-cli/blob/trunk/src/commands/pressable-site-php-errors.php

ahegyes commented 1 year ago

Linking #173 and noting that the API endpoints are unlikely to return the logs when WP_DEBUG is turned on, whereas the current method does support that. So this scenario must be investigated as well :)