Skip to content
New issue

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

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

Already on GitHub? # to your account

Blessed task - reduce number of trace records produced #34

Open
bobbingwide opened this issue Apr 13, 2016 · 1 comment
Open

Blessed task - reduce number of trace records produced #34

bobbingwide opened this issue Apr 13, 2016 · 1 comment

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Apr 13, 2016

This Issue applies to all components that make use of oik-bwtrace APIs.
With many different plugins and themes using the APIs the trace file can get very large and cumbersome.

This Blessed task is similar to its namesake in WordPress. It's an ongoing process. After development of new functionality there might be some trace records which don't really need to be issued at the trace level specified.

Options are:

  1. Delete the trace calls
  2. Comment out the trace calls
  3. Set a higher trace level. e.g. increase to BW_TRACE_VERBOSE from BW_TRACE_DEBUG.

For example, a call to bw_trace2() after bw_get_posts() is probably unnecessary since bw_get_posts() already creates trace records.

@bobbingwide
Copy link
Owner Author

We also need to change bw_trace() to check the trace level before it calls bw_lazy_trace().
Since this function is in a shared library ( libs/bwtrace.php) some other plugins will also need updating.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant