diff options
author | Badlop <badlop@process-one.net> | 2011-12-08 15:50:40 +0400 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-12-08 15:58:52 +0400 |
commit | f675ae1e8c0fa39363f1e94c8df5ab111b973b69 (patch) | |
tree | 085172248144dbb2a6545c77b97950bbc064f563 | |
parent | b03828d2f721c7beed7a858f41774fa59082f38e (diff) |
Add callback function print_state/1 for behavior p1_fsm
-rw-r--r-- | src/ejabberd_s2s_in.erl | 8 |
1 files changed, 8 insertions, 0 deletions
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 |