Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable "SERVER" trace #72

Closed
bobbingwide opened this issue Sep 17, 2018 · 3 comments
Closed

Disable "SERVER" trace #72

bobbingwide opened this issue Sep 17, 2018 · 3 comments

Comments

@bobbingwide
Copy link
Owner

@bobbingwide bobbingwide commented Sep 17, 2018

Requirements

Control what's traced at trace startup.
Specifically, disable "SERVER" trace.

Notes

In trace_startup some of the calls to bw_lazy_trace do not check the required trace level; they are issued as BW_TRACE_ALWAYS.

Proposed solution

Short term

Test for Information level

if ( $bw_trace_level >= BW_TRACE_INFO ) { 
   bw_lazy_trace( $_SERVER, __FUNCTION__, __LINE__, __FILE__, "_SERVER" );
   bw_lazy_trace( $_REQUEST, __FUNCTION__, __LINE__, __FILE__, "_REQUEST" );
}

Longer term

Provide UI to allow control of the data displayed at start up.
Note: This could include tracing the HTTP_RAW_POST_DATA ( See bw_trace_http_raw_post_data()).

@bobbingwide

This comment has been minimized.

Copy link
Owner Author

@bobbingwide bobbingwide commented Nov 22, 2019

It's not going to be easy to test using PHPUnit.
It is easy to test by just using it.
I'm going to remove the logic that traces the value of trace_options['file'] value
and add logic to trace $this->trace_options and $this->trace_files_options
if tracing is VERBOSE.

@bobbingwide

This comment has been minimized.

Copy link
Owner Author

@bobbingwide bobbingwide commented Dec 11, 2019

Which globals are traced for a particular trace level is documented in: https://www.oik-plugins.com/oik-faq/how-do-i-trace-globals/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1 participant
You can’t perform that action at this time.