-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Suppresses griffe logs #7059
Suppresses griffe logs #7059
Conversation
✅ Deploy Preview for prefect-orion ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
with disable_logger("griffe.docstrings.google"): | ||
with disable_logger("griffe.agents.nodes"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to put this in one line, but too long on one line and it didn't like a parentheses:
d4c3955
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Disables griffe logs by adding a
disable_logger
context manager.Also cleans up
disable_run_logger
by usingdisable_logger
.Closes #6947.
Closes #6960.
Example
Without this PR:
results in:
With this PR, those logs are suppressed.
Checklist
<link to issue>
"fix
,feature
,enhancement