Skip to content

Commit

Permalink
Merge pull request #1628 from DennisKrone/keyboard-input
Browse files Browse the repository at this point in the history
Improve logging about users spawned/stopped
  • Loading branch information
cyberw authored Nov 13, 2020
2 parents 1670b42 + 83e1286 commit 7da3306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ def spawn():
while True:
if not bucket:
logger.info(
"All users spawned: %s (%i already running)"
"All users spawned: %s (%i total running)"
% (
", ".join(["%s: %d" % (name, count) for name, count in occurrence_count.items()]),
existing_count,
len(self.user_greenlets),
)
)
self.environment.events.spawning_complete.fire(user_count=len(self.user_greenlets))
Expand Down Expand Up @@ -262,7 +262,7 @@ def stop_users(self, user_count, stop_rate=None):
)
stop_group.kill(block=True)

logger.info("%i Users have been stopped" % user_count)
logger.info("%i Users have been stopped, %g still running" % (user_count, len(self.user_greenlets)))

def monitor_cpu(self):
process = psutil.Process()
Expand Down

0 comments on commit 7da3306

Please sign in to comment.