Skip to content

Commit

Permalink
Log locust version earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Sep 15, 2024
1 parent 7a8ec0e commit 52ac5b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ def kill_workers(children):
atexit.register(kill_workers, children)

logger = logging.getLogger(__name__)

logging.info(f"Starting Locust {version}")

greenlet_exception_handler = greenlet_exception_logger(logger)

if options.stop_timeout:
Expand Down Expand Up @@ -686,7 +689,6 @@ def save_html_report():
gevent.signal_handler(signal.SIGTERM, sig_term_handler)

try:
logger.info(f"Starting Locust {version}")
if options.class_picker:
logger.info("Locust is running with the UserClass Picker Enabled")
if options.autostart and not options.headless:
Expand Down

0 comments on commit 52ac5b1

Please sign in to comment.