bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

Add logic to limit tracing to CLI processing #58

Closed bobbingwide closed 4 years ago

bobbingwide commented 7 years ago

The only place where I'm getting a problem with the value of the PHP_SAPI constant apparently changing is on wp-a2z.org. I need to be able to trace the Command Line Interface only.

Proposed solution

Use a value of 'cli' for the Trace specific IP field and enable tracing when php_sapi_name() matches and the current IP is null.

This in addition to the current logic that tests the specific IP address.

bobbingwide commented 7 years ago

This solution may be suitable for controlling what tracing occurs when running in situ PHPUnit tests and the front-end dashboard.

bobbingwide commented 6 years ago

The new solution for #16 means that we can select the trace file name when tracing the command line. The additional logic to check the value of IP may no longer be necessary.

bobbingwide commented 4 years ago

This fix has been superseded by the new logic to trace to a different file name for CLI requests. There’s a question mark over whether or not tracing a specific IP still works.

bobbingwide commented 4 years ago

There’s a question mark over whether or not tracing a specific IP still works.

This has been re-implemented in the fixes for #17

bobbingwide commented 4 years ago

Documented at: https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-trace-options/options/