Skip to content
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

Even more log level refined, leave alone if not explicitly set #871

Merged
merged 3 commits into from
Nov 18, 2022

Conversation

muellerzr
Copy link
Collaborator

Still not quite pleased with this implementation, learning more about the logging library + good practices. For example the transformers tests the output of accelerator.state() won't actually be logged unless the env var is set currently.

So this PR makes us take a different approach of only filter if we explicitly choose to filter otherwise do nothing. This also limits it to the logger for the module, before it was setting the global log level which was leading to bloated traces

@muellerzr muellerzr added the bug Something isn't working label Nov 18, 2022
@muellerzr muellerzr requested a review from sgugger November 18, 2022 16:16
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 18, 2022

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

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks!

@muellerzr muellerzr merged commit 8bf40e5 into main Nov 18, 2022
@muellerzr muellerzr deleted the log-level-more branch November 18, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants