Skip to content

Log print messages at warning #1720

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

Merged
merged 1 commit into from
Aug 6, 2018
Merged

Log print messages at warning #1720

merged 1 commit into from
Aug 6, 2018

Conversation

natebosch
Copy link
Member

This comes up repeatedly that Builder authors are confused when they add
print calls and can't see the messages because info lines get
overwritten without --verbose, and --verbose adds a bunch of extra
noise that drowns out the wanted messages.

Since we expect Builder authors to rely on log.info for long term
logging they want to keep at info and print to be used only for short
term stuff it should be safe to up the level to warning.

This comes up repeatedly that Builder authors are confused when they add
print calls and can't see the messages because info lines get
overwritten without `--verbose`, and `--verbose` adds a bunch of extra
noise that drowns out the wanted messages.

Since we expect Builder authors to rely on `log.info` for long term
logging they want to keep at info and `print` to be used only for short
term stuff it should be safe to up the level to warning.
@natebosch natebosch requested a review from jakemac53 August 6, 2018 18:21
@googlebot googlebot added the cla: yes Google is happy with the PR contributors label Aug 6, 2018
@natebosch natebosch merged commit c885976 into master Aug 6, 2018
@natebosch natebosch deleted the print-as-warning branch August 6, 2018 19:11
@kevmoo
Copy link
Member

kevmoo commented Aug 6, 2018

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google is happy with the PR contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants