From ba07823c88293ca67ac2b31e2d538c6b14382531 Mon Sep 17 00:00:00 2001 From: Francois Deppierraz Date: Mon, 17 May 2021 09:18:28 +0200 Subject: [PATCH] Fix harvester activity parser regexp to support more than 9 matching plots Without this change, logs like this one were not correctly parsed: harvester chia.harvester.harvester: INFO 10 plots were eligible for farming c599f64427... Found 0 proofs. Time: 0.45573 s. Total X plots --- src/chia_log/parsers/harvester_activity_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chia_log/parsers/harvester_activity_parser.py b/src/chia_log/parsers/harvester_activity_parser.py index ea927fd..471f3be 100644 --- a/src/chia_log/parsers/harvester_activity_parser.py +++ b/src/chia_log/parsers/harvester_activity_parser.py @@ -31,7 +31,7 @@ class HarvesterActivityParser: def __init__(self): logging.info("Enabled parser for harvester activity - eligible plot events.") self._regex = re.compile( - r"([0-9:.]*) harvester (?:src|chia).harvester.harvester(?:\s?): INFO\s*([0-9]) plots were " + r"([0-9:.]*) harvester (?:src|chia).harvester.harvester(?:\s?): INFO\s*([0-9]+) plots were " r"eligible for farming ([0-9a-z.]*) Found ([0-9]) proofs. Time: ([0-9.]*) s. " r"Total ([0-9]*) plots" )