Skip to content

Commit

Permalink
Merge pull request #2670 from locustio/mark-legacy-ui-as-deprecated
Browse files Browse the repository at this point in the history
Log deprecation warning for --legacy-ui
  • Loading branch information
cyberw authored Apr 8, 2024
2 parents c23dea5 + 786df9b commit a7ca357
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion locust/argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def setup_parser_arguments(parser):
"--legacy-ui",
default=False,
action="store_true",
help="Use the legacy frontend for the web UI",
help="Use the legacy frontend for the web UI (deprecated, support will be removed soon)",
env_var="LOCUST_LEGACY_UI",
)

Expand Down
3 changes: 3 additions & 0 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def is_valid_percentile(parameter):
sys.stderr.write("[DEPRECATED] The --hatch-rate parameter has been renamed --spawn-rate\n")
options.spawn_rate = options.hatch_rate

if options.legacy_ui:
sys.stderr.write("[DEPRECATED] The legacy UI is deprecated and will be removed soon\n")

# setup logging
if not options.skip_log_setup:
if options.loglevel.upper() in ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]:
Expand Down

0 comments on commit a7ca357

Please sign in to comment.