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

add support for precision bit in LEVEL_NAME_FMT regex #8641

Merged
merged 4 commits into from May 7, 2021

Conversation

kumiDa
Copy link
Contributor

@kumiDa kumiDa commented May 6, 2021

Fixes #8548
Feature added to support precision bit notation next to %(levelname) in the log_fmt_cli config's printf style format string.

@kumiDa
Copy link
Contributor Author

kumiDa commented May 6, 2021

@Zac-HD,
Wasn't sure if this required a Changelog.
Do let me know if it does, I will add one.

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

Looks good!

  • Yes, we'll need a changelog - tldr; create 8548.bugfix.rst with e.g. "Fix output coloring for certain rare log formats."
  • We'll also need a test that it works now!

src/_pytest/logging.py Outdated Show resolved Hide resolved
@kumiDa kumiDa requested a review from Zac-HD May 7, 2021 10:47
@kumiDa kumiDa requested a review from nicoddemus May 7, 2021 12:30
@nicoddemus
Copy link
Member

Leaving the final review for @Zac-HD. 👍

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks, @rahul-kumi 😍

@Zac-HD Zac-HD merged commit 3ae0103 into pytest-dev:main May 7, 2021
@kumiDa kumiDa deleted the fix/8548 branch May 7, 2021 15:21
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.

No color output when specifying log format string with precision-formatted levelname
3 participants