diff options
author | Peter Andersson <[email protected]> | 2012-03-02 11:34:54 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2012-03-02 11:34:54 +0100 |
commit | bedb0de46685241cedaad05165ad65e60a25da60 (patch) | |
tree | 3b43b1c102f9ae5ce363549c6ddc44b077895998 /lib/common_test | |
parent | 1bc4f4c35876a8dcccad66129e68f602751f6e36 (diff) | |
download | otp-bedb0de46685241cedaad05165ad65e60a25da60.tar.gz otp-bedb0de46685241cedaad05165ad65e60a25da60.tar.bz2 otp-bedb0de46685241cedaad05165ad65e60a25da60.zip |
Fix problem with handling error_logger events
OTP-9941
OTP-9955
Diffstat (limited to 'lib/common_test')
-rw-r--r-- | lib/common_test/src/cth_log_redirect.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/common_test/src/cth_log_redirect.erl b/lib/common_test/src/cth_log_redirect.erl index 14663b7738..b2faa0fcb5 100644 --- a/lib/common_test/src/cth_log_redirect.erl +++ b/lib/common_test/src/cth_log_redirect.erl @@ -31,7 +31,7 @@ %% Event handler Callbacks -export([init/1, handle_event/2, handle_call/2, handle_info/2, - terminate/2]). + terminate/1]). id(_Opts) -> ?MODULE. @@ -101,7 +101,8 @@ handle_call({set_logfunc,NewLogFunc},_) -> {ok, NewLogFunc, NewLogFunc}; handle_call(_Query, _State) -> {error, bad_query}. -terminate(_Reason, _Type) -> +terminate(_State) -> + error_logger:delete_report_handler(?MODULE), []. tag_event(Event) -> |