Skip to content

Don't use bare prints in a library #3991

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
Jul 7, 2023
Merged

Conversation

cmd410
Copy link
Contributor

@cmd410 cmd410 commented Jul 7, 2023

What does this PR do?

Replaces bare prints in some modules with logger.warning. Why?

  • Gives end user more control over the output of their program
  • Gives more information about the source of the message
  • There's literally no reason not to use logger

Who can review?

Anyone in the community is free to review the PR once the tests have passed.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 7, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten
Copy link
Contributor

Thank you!

@patrickvonplaten patrickvonplaten merged commit d1d0b8a into huggingface:main Jul 7, 2023
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
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.

3 participants