]> granicus.if.org Git - ejabberd/commitdiff
Log more data for failed s2s connection
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 21 Nov 2016 08:52:29 +0000 (09:52 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 21 Nov 2016 08:52:36 +0000 (09:52 +0100)
src/ejabberd_s2s_out.erl

index 076ba2d3b91785e96e972d4ca0a2fb691fc3fb17..b9ce47830309f7394a02aafe82aa641daf1cad92 100644 (file)
@@ -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])