It would be nice to see the results of selected filters in the trace log.
Proposed solution
Add a Filter results to trace text area field to the action options admin page in which the names of the filters to trace are specified, comma separated.
For each filter listed attach bw_trace_results() to trace the returned value. This will trace the returned value and optionally, when tracing at BW_TRACE_DEBUG will also trace the other parameters passed.
Notes:
Some filters such as gettext and gettext_with_context are invoked many hundreds of times per transaction. You could get a lot of output.
It would be nice to see the results of selected filters in the trace log.
Proposed solution
Add a
Filter results to trace
text area field to theaction options
admin page in which the names of the filters to trace are specified, comma separated.For each filter listed attach bw_trace_results() to trace the returned value. This will trace the returned value and optionally, when tracing at BW_TRACE_DEBUG will also trace the other parameters passed.
Notes:
Some filters such as
gettext
andgettext_with_context
are invoked many hundreds of times per transaction. You could get a lot of output.