Skip to content

Fix: Info logs incorrectly displayed as ERROR in stderr#3880

Closed
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix-stderr-logging
Closed

Fix: Info logs incorrectly displayed as ERROR in stderr#3880
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix-stderr-logging

Conversation

@Chessing234
Copy link
Copy Markdown

Bug: Uvicorn and other libraries write INFO-level startup messages to sys.stderr. Because sys.stderr was globally redirected to a logger with logging.ERROR level, these normal INFO messages were prefixed with ERROR | stderr. Root cause: Global redirection of sys.stderr to StreamToLogger with logging.ERROR. Why fix is correct: Removing this forced redirection allows standard streams to function naturally, letting native loggers output at their correct severity without being artificially escalated to ERROR.

@Chessing234 Chessing234 closed this by deleting the head repository May 29, 2026
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