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

Change loglevel of TLS failures

This commit is contained in:
Evgeniy Khramtsov 2017-12-19 15:33:30 +03:00
parent 051e1be832
commit 08ce16f7ca
2 changed files with 4 additions and 4 deletions

View File

@ -287,8 +287,8 @@ process_terminated(#{sid := SID, sockmod := SockMod, socket := Socket,
State1;
process_terminated(#{sockmod := SockMod, socket := Socket,
stop_reason := {tls, _}} = State, Reason) ->
?ERROR_MSG("(~s) Failed to secure c2s connection: ~s",
[SockMod:pp(Socket), format_reason(State, Reason)]),
?WARNING_MSG("(~s) Failed to secure c2s connection: ~s",
[SockMod:pp(Socket), format_reason(State, Reason)]),
State;
process_terminated(State, _Reason) ->
State.

View File

@ -289,8 +289,8 @@ terminate(Reason, #{auth_domains := AuthDomains,
sockmod := SockMod, socket := Socket} = State) ->
case maps:get(stop_reason, State, undefined) of
{tls, _} = Err ->
?ERROR_MSG("(~s) Failed to secure inbound s2s connection: ~s",
[SockMod:pp(Socket), xmpp_stream_in:format_error(Err)]);
?WARNING_MSG("(~s) Failed to secure inbound s2s connection: ~s",
[SockMod:pp(Socket), xmpp_stream_in:format_error(Err)]);
_ ->
ok
end,