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:
parent
051e1be832
commit
08ce16f7ca
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user