rate limit log

This commit is contained in:
Feng 2015-11-08 14:42:38 +08:00
parent 8718e4197b
commit 7d54cd8e5d
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 29fffdad97e5c0e336d2eaa5c1f03ea15996dd5a
Subproject commit 8259afcaa1ad223850d2761d1b06cf92b351c576

View File

@ -286,7 +286,7 @@ rate_limit(Size, State = #client_state{rate_limit = Rl}) ->
{0, Rl1} ->
run_socket(State#client_state{conn_state = running, rate_limit = Rl1});
{Pause, Rl1} ->
?LOG(error, "Rate limiter pause for ~p", [Size, Pause], State),
?LOG(error, "Rate limiter pause for ~p", [Pause], State),
erlang:send_after(Pause, self(), activate_sock),
State#client_state{conn_state = blocked, rate_limit = Rl1}
end.