Skip to content

Commit

Permalink
Merge branch 'fredrik/common_test/cth_log_redirect' into maint
Browse files Browse the repository at this point in the history
* fredrik/common_test/cth_log_redirect:
  common_test: Add terminate/1
  • Loading branch information
rimmius committed Oct 18, 2013
2 parents d52be57 + 1a55865 commit 6760384
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/common_test/src/cth_log_redirect.erl
Expand Up @@ -34,7 +34,7 @@
%% Event handler Callbacks
-export([init/1,
handle_event/2, handle_call/2, handle_info/2,
terminate/2, code_change/3]).
terminate/1, terminate/2, code_change/3]).

%% Other
-export([handle_remote_events/1]).
Expand Down Expand Up @@ -186,10 +186,13 @@ handle_call({handle_remote_events,Bool}, State) ->
handle_call(_Query, _State) ->
{error, bad_query}.

terminate(_Arg, _State) ->
terminate(_) ->
error_logger:delete_report_handler(?MODULE),
[].

terminate(_Arg, _State) ->
ok.

tag_event(Event) ->
{calendar:local_time(), Event}.

Expand Down

0 comments on commit 6760384

Please sign in to comment.