25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Log more data for failed s2s connection

This commit is contained in:
Paweł Chmielowski 2016-11-21 09:52:29 +01:00
parent c7ae916afc
commit 3f91668c46

View File

@ -231,10 +231,10 @@ open_socket(init, StateData) ->
send_header(NewStateData, Version), send_header(NewStateData, Version),
{next_state, wait_for_stream, NewStateData, {next_state, wait_for_stream, NewStateData,
?FSMTIMEOUT}; ?FSMTIMEOUT};
{error, _Reason} -> {error, Reason} ->
?INFO_MSG("s2s connection: ~s -> ~s (remote server " ?INFO_MSG("s2s connection: ~s -> ~s (remote server "
"not found)", "not found: ~p)",
[StateData#state.myname, StateData#state.server]), [StateData#state.myname, StateData#state.server, Reason]),
case ejabberd_hooks:run_fold(find_s2s_bridge, undefined, case ejabberd_hooks:run_fold(find_s2s_bridge, undefined,
[StateData#state.myname, [StateData#state.myname,
StateData#state.server]) StateData#state.server])