]> granicus.if.org Git - ejabberd/commitdiff
Add callback function print_state/1 for behavior p1_fsm
authorBadlop <badlop@process-one.net>
Thu, 8 Dec 2011 11:50:40 +0000 (12:50 +0100)
committerBadlop <badlop@process-one.net>
Thu, 8 Dec 2011 11:58:52 +0000 (12:58 +0100)
src/ejabberd_s2s_in.erl

index 141db34bfe43c1a5c8793072f8018dc3e11f5fc9..cfe5be3eacacd79665bee716e80ed0ef4bd98ca6 100644 (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