Skip to content

Commit

Permalink
sasl: Eliminate tuple used as fun
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis authored and bjorng committed Feb 16, 2010
1 parent b8527e1 commit c394654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sasl/src/sasl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ type(_) -> all.
add_error_logger_mf(undefined) -> ok;
add_error_logger_mf({Dir, MaxB, MaxF}) ->
error_logger:add_report_handler(
log_mf_h, log_mf_h:init(Dir, MaxB, MaxF, {sasl, pred})).
log_mf_h, log_mf_h:init(Dir, MaxB, MaxF, fun pred/1)).

delete_error_logger_mf(undefined) -> ok;
delete_error_logger_mf(_) ->
error_logger:delete_report_handler(log_mf_h).

pred({_Type, GL, _Msg}) when node(GL) /= node() -> false;
pred({_Type, GL, _Msg}) when node(GL) =/= node() -> false;
pred(_) -> true.

%%%-----------------------------------------------------------------
Expand Down

0 comments on commit c394654

Please sign in to comment.