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

* src/mod_caps.erl: Move two log calls ERROR_MSG to DEBUG

* src/shaper.erl: Move log call INFO_MSG to DEBUG

SVN Revision: 1247
This commit is contained in:
Badlop 2008-03-21 18:58:07 +00:00
parent efec28ada7
commit 86df7de48f
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2008-03-21 Badlop <badlop@process-one.net>
* src/mod_caps.erl: Move two log calls ERROR_MSG to DEBUG
* src/shaper.erl: Move log call INFO_MSG to DEBUG
* doc/guide.tex: Document s2s_default_policy and
s2s_host (EJAB-575)
* doc/guide.html: Likewise

View File

@ -251,9 +251,9 @@ handle_cast({disco_response, From, _To,
end;
{error, _} ->
gen_server:cast(self(), visit_feature_queries),
?ERROR_MSG("Error IQ reponse IQ from ~s:~n~p", [jlib:jid_to_string(From), SubEls]);
?DEBUG("Error IQ reponse from ~s:~n~p", [jlib:jid_to_string(From), SubEls]);
{result, _} ->
?ERROR_MSG("Invalid IQ contents from ~s:~n~p", [jlib:jid_to_string(From), SubEls]);
?DEBUG("Invalid IQ contents from ~s:~n~p", [jlib:jid_to_string(From), SubEls]);
_ ->
%% Can't do anything about errors
ok

View File

@ -58,7 +58,7 @@ update(#maxrate{} = State, Size) ->
MinInterv = 1000 * Size /
(2 * State#maxrate.maxrate - State#maxrate.lastrate),
Interv = (now_to_usec(now()) - State#maxrate.lasttime) / 1000,
?INFO_MSG("State: ~p, Size=~p~nM=~p, I=~p~n",
?DEBUG("State: ~p, Size=~p~nM=~p, I=~p~n",
[State, Size, MinInterv, Interv]),
Pause = if
MinInterv > Interv ->