Skip to content

Commit

Permalink
improve limit event log
Browse files Browse the repository at this point in the history
  • Loading branch information
wps886 committed Jun 15, 2017
1 parent ddb3f53 commit c8e983f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public InvocationResponse invoke(ServiceInvocationHandler handler, ProviderConte
long requests = ProviderStatisticsHolder.getMethodAppCapacityBucket(request)
.getRequestsInCurrentSecond();
if (requests + 1 > limit) {
monitor.logEvent("PigeonService.methodAppLimit", fromApp + "@" + requestMethod + ":" + limit, "");
monitor.logEvent("PigeonService.methodAppLimit", fromApp + ":" + limit, "");
throw new RejectedException(
String.format("Max requests limit %s reached for request %s from app:%s", limit,
requestMethod, fromApp));
Expand Down

0 comments on commit c8e983f

Please sign in to comment.