mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Add callback function print_state/1 for behavior p1_fsm
This commit is contained in:
parent
48308042b6
commit
d3369c83e7
@ -44,6 +44,7 @@
|
|||||||
handle_sync_event/4,
|
handle_sync_event/4,
|
||||||
code_change/4,
|
code_change/4,
|
||||||
handle_info/3,
|
handle_info/3,
|
||||||
|
print_state/1,
|
||||||
terminate/3]).
|
terminate/3]).
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
@ -670,6 +671,13 @@ get_external_hosts(StateData) ->
|
|||||||
[D || {{D, _}, established} <- dict:to_list(Connections)]
|
[D || {{D, _}, established} <- dict:to_list(Connections)]
|
||||||
end.
|
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
|
%%% Internal functions
|
||||||
|
Loading…
Reference in New Issue
Block a user