Skip to content

Commit 786df9b

Browse files
committed
Log deprecation warning for --legacy-ui
1 parent c23dea5 commit 786df9b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: locust/argument_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def setup_parser_arguments(parser):
559559
"--legacy-ui",
560560
default=False,
561561
action="store_true",
562-
help="Use the legacy frontend for the web UI",
562+
help="Use the legacy frontend for the web UI (deprecated, support will be removed soon)",
563563
env_var="LOCUST_LEGACY_UI",
564564
)
565565

Diff for: locust/main.py

+3
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ def is_valid_percentile(parameter):
182182
sys.stderr.write("[DEPRECATED] The --hatch-rate parameter has been renamed --spawn-rate\n")
183183
options.spawn_rate = options.hatch_rate
184184

185+
if options.legacy_ui:
186+
sys.stderr.write("[DEPRECATED] The legacy UI is deprecated and will be removed soon\n")
187+
185188
# setup logging
186189
if not options.skip_log_setup:
187190
if options.loglevel.upper() in ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]:

0 commit comments

Comments
 (0)