From 8ab33c02775c6e28651db9f776e91496c72ee72b Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 26 May 2021 00:36:27 +0200 Subject: [PATCH] Improved visit probing with status code 200 restriction. --- src/fr/devinsy/statoolinfos/metrics/http/VisitCounters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/VisitCounters.java b/src/fr/devinsy/statoolinfos/metrics/http/VisitCounters.java index f4ed6ff..abbee96 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/VisitCounters.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/VisitCounters.java @@ -136,7 +136,7 @@ public class VisitCounters extends HashMap */ public void putVisit(final HttpAccessLog log) { - if (log != null) + if ((log != null) && (log.getStatus().getCategory() == HttpStatusCategory.SUCCESS)) { String key = computeKey(log);