Skip to content

fix: map uvicorn stderr prefixes to correct log levels#3895

Open
Chessing234 wants to merge 2 commits into
lm-sys:mainfrom
Chessing234:fix/1292-stderr-log-level
Open

fix: map uvicorn stderr prefixes to correct log levels#3895
Chessing234 wants to merge 2 commits into
lm-sys:mainfrom
Chessing234:fix/1292-stderr-log-level

Conversation

@Chessing234

Copy link
Copy Markdown

Fixes #1292

Summary

  • Uvicorn and similar libraries write INFO-level startup messages to stderr, but FastChat's StreamToLogger redirected all stderr output at ERROR level.
  • Parse common log level prefixes on redirected stderr lines and emit them at the matching level, while keeping unparsed stderr at ERROR.

Test plan

  • Start python -m fastchat.serve.controller and confirm uvicorn startup lines appear as INFO instead of ERROR

Made with Cursor

Chessing234 and others added 2 commits June 24, 2026 21:46
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Info logs displayed as ERROR | stderr

1 participant