aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorRoberto Aloi <[email protected]>2013-09-16 11:05:56 +0200
committerRoberto Aloi <[email protected]>2013-09-16 11:07:32 +0200
commitb732d1df54c9567cf15015bf549b812252299d9f (patch)
treefe52846d473956b866e4c6ac26ff9c7ff9a48259 /lib/common_test
parent5d89ddd1254464947d7a90aff25990de0c02896e (diff)
downloadotp-b732d1df54c9567cf15015bf549b812252299d9f.tar.gz
otp-b732d1df54c9567cf15015bf549b812252299d9f.tar.bz2
otp-b732d1df54c9567cf15015bf549b812252299d9f.zip
The gen_event callback module expects terminate/2, not terminate/1
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/cth_log_redirect.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/src/cth_log_redirect.erl b/lib/common_test/src/cth_log_redirect.erl
index 4ee7e48a67..b7f0e1fd7f 100644
--- a/lib/common_test/src/cth_log_redirect.erl
+++ b/lib/common_test/src/cth_log_redirect.erl
@@ -34,7 +34,7 @@
%% Event handler Callbacks
-export([init/1,
handle_event/2, handle_call/2, handle_info/2,
- terminate/1]).
+ terminate/2]).
%% Other
-export([handle_remote_events/1]).
@@ -184,7 +184,7 @@ handle_call({handle_remote_events,Bool}, State) ->
handle_call(_Query, _State) ->
{error, bad_query}.
-terminate(_State) ->
+terminate(_Arg, _State) ->
error_logger:delete_report_handler(?MODULE),
[].