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

Use lazy % formatting for logging calls #21

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

mcdonnnj
Copy link
Member

πŸ—£ Description

This pull request convert all calls using the logging library to use lazy % formatting instead of f-strings.

πŸ’­ Motivation and context

The use of % formatting in logging calls is preferred for a number of reasons. This also brings this project in line with our other Python projects that already follow this preference.

πŸ§ͺ Testing

Automated tests pass.

βœ… Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

It is preferred to use the lazier % style formatting instead of f-
strings when formatting logging messages.
@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Jan 18, 2022
@mcdonnnj mcdonnnj self-assigned this Jan 18, 2022
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

πŸ‘

@mcdonnnj mcdonnnj merged commit 5644964 into v1.0.0 Jan 18, 2022
@mcdonnnj mcdonnnj deleted the improvement/lazy_logging_format branch January 18, 2022 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants