From 71da08488b76b8ce210b8841c6bbb68b122ea331 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 31 Jan 2022 14:42:36 +0100 Subject: [PATCH] Removed bots from user in LibreQR metrics. --- .../statoolinfos/metrics/libreqr/LibreQRHttpLogAnalyzer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRHttpLogAnalyzer.java b/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRHttpLogAnalyzer.java index 5281307..67b0d67 100644 --- a/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRHttpLogAnalyzer.java +++ b/src/fr/devinsy/statoolinfos/metrics/libreqr/LibreQRHttpLogAnalyzer.java @@ -96,7 +96,7 @@ public class LibreQRHttpLogAnalyzer // metrics.service.users.ipv4 // metrics.service.users.ipv6 // metrics.barcodes.count - if (USE_PATTERN.matcher(log.getRequest()).matches()) + if ((!log.isBot()) && (USE_PATTERN.matcher(log.getRequest()).matches())) { String key = String.format("%s---%s", log.getIp(), log.getUserAgent());