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

Refactored logging statements to use lazy % formatting #3335

Merged
merged 10 commits into from
Mar 9, 2023

Conversation

skynette
Copy link
Contributor

@skynette skynette commented Mar 8, 2023

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.

@suhaibmujahid suhaibmujahid linked an issue Mar 8, 2023 that may be closed by this pull request
Copy link
Member

@suhaibmujahid suhaibmujahid left a 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

.gitignore Outdated Show resolved Hide resolved
bugbug/repository.py Outdated Show resolved Hide resolved
@skynette
Copy link
Contributor Author

skynette commented Mar 8, 2023

Okay I will attend to these thanks for feedback

.gitignore Outdated Show resolved Hide resolved
Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

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

LGTM!

@marco-c marco-c merged commit a8bacbe into mozilla:master Mar 9, 2023
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.

Refactor logging statements to use lazy % formatting
3 participants