-
Notifications
You must be signed in to change notification settings - Fork 311
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
Refactored logging statements to use lazy % formatting #3335
Conversation
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.
Thank you, @skynette! Could you please fix the test errors?
To avoid lint failures, it is recommended to setup pre-commit: https://github.com/mozilla/bugbug#auto-formatting
Okay I will attend to these thanks for feedback |
Co-authored-by: Suhaib Mujahid <[email protected]>
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!
Refactored most if not all logging statements to use % lazy format.
The goal of this PR is to refactor some of the logging statements to use the % lazy style of formatting
for example refactoring
logger.info(f"Fetching {events_url}")
becomes
logger.info("Analyzing {}...".format(bug_fixing_commit["rev"]))
This PR is part of the fix for #3323.