24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-12 21:52:07 +02: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 20ebe81384
commit 6aa2f740f4
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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 ->