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 appropriate stacklevel arguments to ResourceWarning #747

Open
achimnol opened this issue Nov 4, 2020 · 1 comment
Open

Add appropriate stacklevel arguments to ResourceWarning #747

achimnol opened this issue Nov 4, 2020 · 1 comment

Comments

@achimnol
Copy link
Member

achimnol commented Nov 4, 2020

It's hard to debug the source of ResourceWarning generated in some production environments because they do not expose the callers of the aiopg APIs.
Let's add stacklevel arguments to warnings.warn() calls (including skipping intermediate wrapper functions) so that users can pinpoint the warning sources in their code bases.

@asvetlov
Copy link
Member

Good idea.

@achimnol sorry, the project has no active maintainers.

Would you get admin rights for aiopg?

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

No branches or pull requests

2 participants