-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pserve should write verbose messages to stderr, not stdout. #3592
Comments
I’m not super comfortable overriding Python defaults here. It feels like it’ll just hide a deeper config issue in other print statements. |
@mmerickel I am proposing changing only the few prints in But the |
Fixing #3592 - output diagnostic messages to stderr, not stdout
fixed via #3593 |
pserve.py
has this method for outputting verbose diagnostics:and a couple direct
print
s.I was running my code in Docker and thought there was something really wrong with my container as I didn't get the pserve diagnostics messages. Turns out that it was just because
stdout
was in fully-buffered mode.Suggestion: change
print
s toprint(..., file=sys.stderr)
... then one can see the message in logs before a full block is output to stdout ;)The text was updated successfully, but these errors were encountered: