From: Paweł Chmielowski Date: Mon, 21 Nov 2016 08:52:29 +0000 (+0100) Subject: Log more data for failed s2s connection X-Git-Tag: 16.12-beta1~37^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f91668c46c0eca28333fd2a749c67b75dc105a5;p=ejabberd Log more data for failed s2s connection --- diff --git a/src/ejabberd_s2s_out.erl b/src/ejabberd_s2s_out.erl index 076ba2d3b..b9ce47830 100644 --- a/src/ejabberd_s2s_out.erl +++ b/src/ejabberd_s2s_out.erl @@ -231,10 +231,10 @@ open_socket(init, StateData) -> send_header(NewStateData, Version), {next_state, wait_for_stream, NewStateData, ?FSMTIMEOUT}; - {error, _Reason} -> + {error, Reason} -> ?INFO_MSG("s2s connection: ~s -> ~s (remote server " - "not found)", - [StateData#state.myname, StateData#state.server]), + "not found: ~p)", + [StateData#state.myname, StateData#state.server, Reason]), case ejabberd_hooks:run_fold(find_s2s_bridge, undefined, [StateData#state.myname, StateData#state.server])