Removed bots from user in LibreQR metrics.

This commit is contained in:
Christian P. MOMON 2022-01-31 14:42:36 +01:00
parent e86aeeabd5
commit 71da08488b

View file

@ -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());