25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

* src/ejabberd_s2s_out.erl: Avoid an harmless error (function clause in logs)

SVN Revision: 1331
This commit is contained in:
Mickaël Rémond 2008-05-18 12:28:58 +00:00
parent 4e77bae206
commit 8a8a02431f
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-05-19 Mickael Remond <mremond@process-one.net>
* src/ejabberd_s2s_out.erl: Avoid an harmless error (function clause in
logs)
2008-05-17 Badlop <badlop@process-one.net>
* src/extauth.erl: Log strange responses from extauth script. Use

View File

@ -297,6 +297,11 @@ wait_for_stream({xmlstreamerror, _}, StateData) ->
[StateData#state.myname, StateData#state.server]),
{stop, normal, StateData};
wait_for_stream({xmlstreamend,_Name}, StateData) ->
?INFO_MSG("Closing s2s connection: ~s -> ~s (xmlstreamend)",
[StateData#state.myname, StateData#state.server]),
{stop, normal, StateData};
wait_for_stream(timeout, StateData) ->
?INFO_MSG("Closing s2s connection: ~s -> ~s (timeout in wait_for_stream)",
[StateData#state.myname, StateData#state.server]),
@ -680,7 +685,7 @@ stream_established({xmlstreamelement, El}, StateData) ->
{next_state, stream_established, StateData};
stream_established({xmlstreamend, _Name}, StateData) ->
?INFO_MSG("stream established: ~s -> ~s (xmlstreamend)",
?INFO_MSG("Connection closed in stream established: ~s -> ~s (xmlstreamend)",
[StateData#state.myname, StateData#state.server]),
{stop, normal, StateData};
@ -969,7 +974,7 @@ get_addr_port(Server) ->
end,
{Priority * 65536 - N, Host, Port}
end, AddrList)) of
{'EXIT', _Reasn} ->
{'EXIT', _Reason} ->
[{Server, outgoing_s2s_port()}];
SortedList ->
List = lists:map(