Closed bobbingwide closed 4 years ago
In the latest version, the logic to restrict tracing to a specific IP has not yet been re-implemented. When it is re-implemented it will need to use improved logic to detect the correct current IP.
The PHPUnit tests were failing while testing trace file reset logic. I needed to fiddle the logic to set an initial value for the trace_ip()
method. A bit of a horrid hack. But who's NOT going to select the Reset trace file every transaction
checkbox?
The Trace specific IP field is documented: https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-trace-options/trace-options-trace-records/
As noted in Issue #16, tracing is not being disabled if there is an IP mismatch. The test for
if ( !$bw_trace_ip )
is no longer necessary. bw_trace_off() should be called if $tracing is false.