From f675ae1e8c0fa39363f1e94c8df5ab111b973b69 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 8 Dec 2011 12:50:40 +0100 Subject: [PATCH] Add callback function print_state/1 for behavior p1_fsm --- src/ejabberd_s2s_in.erl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl index 141db34bf..cfe5be3ea 100644 --- a/src/ejabberd_s2s_in.erl +++ b/src/ejabberd_s2s_in.erl @@ -44,6 +44,7 @@ handle_sync_event/4, code_change/4, handle_info/3, + print_state/1, terminate/3]). -include_lib("exmpp/include/exmpp.hrl"). @@ -643,6 +644,13 @@ get_external_hosts(StateData) -> [D || {{D, _}, established} <- dict:to_list(Connections)] end. +%%---------------------------------------------------------------------- +%% Func: print_state/1 +%% Purpose: Prepare the state to be printed on error log +%% Returns: State to print +%%---------------------------------------------------------------------- +print_state(State) -> + State. %%%---------------------------------------------------------------------- %%% Internal functions