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

Record additional information in the daily trace summary report #22

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

In order to properly analyze the information in the daily trace summary report additional information could be recorded to make it easier. For example the HTTP_USER_AGENT, the REQUEST_METHOD and perhaps other information.

Note: It may be a good idea to pre-process the HTTP_USER_AGENT data.

bobbingwide commented 5 years ago

I've removed the TODO from the comments in bw_trace_http_user_agent()

 @TODO Don't use get_browser unless 1. It's requested, 2. It's enabled
 * How can we tell which version it's using?
 * {@link http://browscap.org/}

and the commented out code.

/*
    $browscap = ini_get( "browscap" ); 
    if ( false !== $browscap ) {
        bw_trace2( $browscap, "browscap", false, BW_TRACE_VERBOSE );
        $browser = get_browser( $http_user_agent, true );
        bw_trace2( $browser, "browser", false, BW_TRACE_VERBOSE );
    } else {    
        gob();
    }
    */