Skip to content

Commit

Permalink
HarvesterActivityParser: Correctly parse multi-digit number of plots (#…
Browse files Browse the repository at this point in the history
…133)

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
  • Loading branch information
ctrlaltdel authored May 17, 2021
1 parent f3f62bd commit 41f2c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chia_log/parsers/harvester_activity_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 41f2c40

Please sign in to comment.