Merge pull request #177 from weiss/log-tls-sasl-external

Log TLS status for outgoing s2s with SASL EXTERNAL
This commit is contained in:
Evgeny Khramtsov 2014-04-30 00:38:18 +04:00
commit 9563b0228f
1 changed files with 4 additions and 2 deletions

View File

@ -592,8 +592,10 @@ wait_for_features({xmlstreamelement, El}, StateData) ->
if not SASLEXT and not StartTLS and
StateData#state.authenticated ->
send_queue(StateData, StateData#state.queue),
?INFO_MSG("Connection established: ~s -> ~s",
[StateData#state.myname, StateData#state.server]),
?INFO_MSG("Connection established: ~s -> ~s with "
"SASL EXTERNAL and TLS=~p",
[StateData#state.myname, StateData#state.server,
StateData#state.tls_enabled]),
ejabberd_hooks:run(s2s_connect_hook,
[StateData#state.myname,
StateData#state.server]),