mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +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:
parent
efec28ada7
commit
86df7de48f
@ -1,5 +1,8 @@
|
|||||||
2008-03-21 Badlop <badlop@process-one.net>
|
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
|
* doc/guide.tex: Document s2s_default_policy and
|
||||||
s2s_host (EJAB-575)
|
s2s_host (EJAB-575)
|
||||||
* doc/guide.html: Likewise
|
* doc/guide.html: Likewise
|
||||||
|
@ -251,9 +251,9 @@ handle_cast({disco_response, From, _To,
|
|||||||
end;
|
end;
|
||||||
{error, _} ->
|
{error, _} ->
|
||||||
gen_server:cast(self(), visit_feature_queries),
|
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, _} ->
|
{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
|
%% Can't do anything about errors
|
||||||
ok
|
ok
|
||||||
|
@ -58,7 +58,7 @@ update(#maxrate{} = State, Size) ->
|
|||||||
MinInterv = 1000 * Size /
|
MinInterv = 1000 * Size /
|
||||||
(2 * State#maxrate.maxrate - State#maxrate.lastrate),
|
(2 * State#maxrate.maxrate - State#maxrate.lastrate),
|
||||||
Interv = (now_to_usec(now()) - State#maxrate.lasttime) / 1000,
|
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]),
|
[State, Size, MinInterv, Interv]),
|
||||||
Pause = if
|
Pause = if
|
||||||
MinInterv > Interv ->
|
MinInterv > Interv ->
|
||||||
|
Loading…
Reference in New Issue
Block a user