Skip to content

fix: model worker --debug flag parsing#3896

Open
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix/model-worker-debug-flag
Open

fix: model worker --debug flag parsing#3896
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix/model-worker-debug-flag

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • switch --debug from type=bool to action="store_true"

type=bool in argparse treats any non-empty string as True, so --debug False still turned debug on.

Test plan

  • start model worker without --debug and confirm debug logs are off
  • start with --debug and confirm debug logs appear

Made with Cursor

argparse type=bool treats any string as True, so --debug False still
enabled debug mode. Use store_true instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant