From 383d1c407f59fb50520c57ccf0512cec201bc8e8 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier Date: Fri, 4 Aug 2023 15:56:52 +0200 Subject: [PATCH] Minor changes --- .../elasticsearch/rest/security/RestQuotaController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java b/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java index 3487dbc9..2e57f85c 100644 --- a/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java +++ b/cesium-plus-pod-core/src/main/java/org/duniter/elasticsearch/rest/security/RestQuotaController.java @@ -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,