Skip to content

Commit

Permalink
Merge pull request #2904 from locustio/log-locust-version-earlier
Browse files Browse the repository at this point in the history
Log locust version earlier
  • Loading branch information
cyberw committed Sep 15, 2024
2 parents 7a8ec0e + 6556be3 commit fc3e225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def is_valid_percentile(parameter):
sys.exit(1)

children = []
logger = logging.getLogger(__name__)
logger.info(f"Starting Locust {version}")

if options.processes:
if os.name == "nt":
Expand Down Expand Up @@ -298,7 +300,6 @@ def kill_workers(children):

atexit.register(kill_workers, children)

logger = logging.getLogger(__name__)
greenlet_exception_handler = greenlet_exception_logger(logger)

if options.stop_timeout:
Expand Down Expand Up @@ -686,7 +687,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 fc3e225

Please sign in to comment.