woocommerce / qit-cli

A Testing Platform for WordPress Plugins and Themes
https://qit.woo.com
15 stars 2 forks source link

Support qm logs #195

Open MrJnrman opened 4 weeks ago

MrJnrman commented 4 weeks ago

WIP

Added support for collection Query Monitor logs

Changes in this PR

Note: If no QM log exists, then the original prepared debug log is sent, if the QM log does exists then its sent along with the original prepated debug log.

Structure of debug log returned to the Manager

If QM Logs Exists

{
        "debug_log": "<original_debug_log_json>",
    "qm_logs": {
        "non_fatal": "<qm_log>",
        "fatal": "<debug_log_fatals>",
    }
}

If QM Logs Not Exists

{"<original_debug_log_json>"}