From b732d1df54c9567cf15015bf549b812252299d9f Mon Sep 17 00:00:00 2001 From: Roberto Aloi Date: Mon, 16 Sep 2013 11:05:56 +0200 Subject: The gen_event callback module expects terminate/2, not terminate/1 --- lib/common_test/src/cth_log_redirect.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/common_test') 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), []. -- cgit v1.2.3