Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
blavenie committed Aug 4, 2023
1 parent 840bba4 commit 383d1c4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public RestQuotaController quota(RestRequest.Method method, String regexPath, in
if (trace) log.trace(String.format("Reject %s request [%s] from address {%s} - maxCallCount: %s, duration: '%s%s'",
method, regexPath, address,
maxCount, duration, unit.name()));

// Save the IP into the log/request index
if (logRejectedRequests) {
if (!trace) log.warn(String.format("Reject %s request [%s] from address {%s} - maxCallCount: %s, duration: '%s%s'",
method, regexPath, address,
Expand Down

0 comments on commit 383d1c4

Please sign in to comment.