24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Move some log messages to debug level

This commit is contained in:
Evgeniy Khramtsov 2018-02-21 17:12:50 +03:00
parent 0acc69e303
commit ec0f0f7c72
2 changed files with 8 additions and 8 deletions

View File

@ -115,10 +115,10 @@ iq_handler(#iq{type = set, lang = Lang, from = From,
{U, S, R} = jid:tolower(From), {U, S, R} = jid:tolower(From),
Result = case El of Result = case El of
#carbons_enable{} -> #carbons_enable{} ->
?INFO_MSG("carbons enabled for user ~s@~s/~s", [U,S,R]), ?DEBUG("Carbons enabled for user ~s@~s/~s", [U,S,R]),
enable(S, U, R, ?NS_CARBONS_2); enable(S, U, R, ?NS_CARBONS_2);
#carbons_disable{} -> #carbons_disable{} ->
?INFO_MSG("carbons disabled for user ~s@~s/~s", [U,S,R]), ?DEBUG("Carbons disabled for user ~s@~s/~s", [U,S,R]),
disable(S, U, R) disable(S, U, R)
end, end,
case Result of case Result of

View File

@ -279,8 +279,8 @@ c2s_closed(State, _Reason) ->
State. State.
c2s_terminated(#{mgmt_state := resumed, jid := JID} = State, _Reason) -> c2s_terminated(#{mgmt_state := resumed, jid := JID} = State, _Reason) ->
?INFO_MSG("Closing former stream of resumed session for ~s", ?DEBUG("Closing former stream of resumed session for ~s",
[jid:encode(JID)]), [jid:encode(JID)]),
bounce_message_queue(), bounce_message_queue(),
{stop, State}; {stop, State};
c2s_terminated(#{mgmt_state := MgmtState, mgmt_stanzas_in := In, sid := SID, c2s_terminated(#{mgmt_state := MgmtState, mgmt_stanzas_in := In, sid := SID,
@ -371,15 +371,15 @@ handle_enable(#{mgmt_timeout := DefaultTimeout,
DefaultTimeout DefaultTimeout
end, end,
Res = if Timeout > 0 -> Res = if Timeout > 0 ->
?INFO_MSG("Stream management with resumption enabled for ~s", ?DEBUG("Stream management with resumption enabled for ~s",
[jid:encode(JID)]), [jid:encode(JID)]),
#sm_enabled{xmlns = Xmlns, #sm_enabled{xmlns = Xmlns,
id = make_resume_id(State), id = make_resume_id(State),
resume = true, resume = true,
max = Timeout}; max = Timeout};
true -> true ->
?INFO_MSG("Stream management without resumption enabled for ~s", ?DEBUG("Stream management without resumption enabled for ~s",
[jid:encode(JID)]), [jid:encode(JID)]),
#sm_enabled{xmlns = Xmlns} #sm_enabled{xmlns = Xmlns}
end, end,
State1 = State#{mgmt_state => active, State1 = State#{mgmt_state => active,