diff --git a/locust/runners.py b/locust/runners.py index 9dd80dcc87..e97a0a0992 100644 --- a/locust/runners.py +++ b/locust/runners.py @@ -38,11 +38,9 @@ def __init__(self, locust_classes, options): self.exceptions = {} self.stats = global_stats - # register listener that resets stats when hatching is complete def on_hatch_complete(user_count): self.state = STATE_RUNNING - logger.info("Resetting stats\n") - self.stats.reset_all() + events.hatch_complete += on_hatch_complete @property