Age | Commit message (Collapse) | Author |
|
OTP-8619 In R13B04 sys:get_status was modified to invoke format_status/2
in the callback module if the module exports that function.
This resulted in a change to the term returned from calling
sys:get_status on the supervisor module, since supervisor
is a gen_server and gen_server exports format_status. The
sasl release_handler_1 module had a dependency on the pre-R13B04
term returned by sys:get_status when invoked on a supervisor,
so the R13B04 change broke that dependency. This problem
has been fixed by change release_handler_1 to handle both
the pre-R13B04 and R13B04 terms that sys:get_status can
return from a supervisor.
|
|
OTP-8506 <p>Use an infinity timeout in all calls to
<c>gen_server:call()</c> in the <c>sasl</c> application.</p>
|
|
|
|
* va/rb-improvements:
New rb:filter/2 to filter reports by date
New rb:filter/1 function to ease report filtering
Modify rb:grep/1 to grep reports using the re module
Fix minor typo in read_report/1
OTP-8443 The re:grep/1 function now uses the 're' module instead of the
deprecated 'regexp' module. There are new functions rb:filter/1
and rb:filter/2 for easier filtering of reports. (Thanks to
Alvaro Videla.)
|
|
The function filter/2 expects a second parameter
Dates that can be used to return reports that
occurred between the provided dates.
Usage:
Dec22 = {{2009,12,22},{0,0,0}}.
Dec24 = {{2009,12,24},{0,0,0}}.
rb:filter(Filters, {Dec22, from}).
%will return reports that occurred from Dec22.
rb:filter(Filters, {Dec22, to}).
%will return reports that occurred before Dec22.
rb:filter(Filters, {Dec22, Dec24}).
%will return reports that occurred between Dec22
% and Dec24
|
|
Currently in the rb module the only way to filter
reports is by using the grep/1 or re/1 functions
that use Regular Expressions.
This new function allow us to specify detailed
filters that will match against our reports.
Since the reports are proplists the filters are
tuples of the form {Key, Value}. If the report
contains that tuple, it will be displayed.
Usage:
1> rb:filter([{"foo", "bar"}, {"abc", "value"}]).
2> rb:filter([{"foo", "bar", no}]).
% excludes reports containing {"foo", "bar"}
3> rb:filter([{"foo", RegExp, re}]).
% the report must contain an element with Key = "foo"
% and Value must match RegExp
|
|
|
|
|