bpo-46557: Log captured warnings without format string (GH-30975)#30975
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
For systems that aggregate logs like Sentry, the use of a format string causes all warnings to be grouped under the same issue.
ericvsmith
left a comment
There was a problem hiding this comment.
I'll let @vsajip decide if this is a desirable feature. It doesn't seem unreasonable to me. But see my note about adding a comment in the code so that someone doesn't undo this change in the future.
|
I agree with Eric that it doesn't seem unreasonable, and although semantically there is a difference, in practice the scope of the change seems narrow. But I've marked the issue as an enhancement rather than behaviour and thus the changes to be limited to 3.11. (There's nothing wrong with the current behaviour, and Sentry could always treat "%s" as a special case at their end.) |
Oh yeah absolutely, sorry that's just me being unfamiliar with filing Python issues. My intentions were not to have the change backported to earlier Python versions. Thanks! |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @vsajip: please review the changes made to this pull request. |
For systems that aggregate logs like Sentry, the use of a format string causes all warnings to be grouped under the same issue.
https://bugs.python.org/issue46557