25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Add callback function print_state/1 for behavior p1_fsm

This commit is contained in:
Badlop 2011-12-08 12:50:40 +01:00
parent b03828d2f7
commit f675ae1e8c

View File

@ -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