Skip to content

Conversation

@helen-fornazier
Copy link

@helen-fornazier helen-fornazier commented Jul 4, 2018

The function print sends the output to stdout disturbing the output of
the application.
Use logging instead which sends the logs to stderr by default or to the
destination configured by the application.

Closes #5565

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 4, 2018
@theacodes
Copy link
Contributor

@helen-fornazier how would you feel about using sys.stderr instead of logging?

@tseaver
Copy link
Contributor

tseaver commented Jul 9, 2018

FWIW, I'd much rather use sys.stderr, given the circularity of having our log handlers calling back into the stdlib logging stuff.

The function print sends the output to stdout disturbing the output of
the application.
Redirect its output to stderr instead with sys.stderr
@helen-fornazier
Copy link
Author

I just updated the PR to use sys.stderr, could you please take another look?

Thanks

@theacodes theacodes merged commit e1e714c into googleapis:master Jul 10, 2018
@theacodes
Copy link
Contributor

Thank you, @helen-fornazier!

@helen-fornazier helen-fornazier deleted the logging branch July 11, 2018 14:17
parthea pushed a commit that referenced this pull request Nov 24, 2025
The function print sends the output to stdout disturbing the output of
the application.
Redirect its output to stderr instead with sys.stderr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants