aio-libs / aio-libs/aiohttp

Show where garbaged object was instantiated in warnings

Đang mở
#11,235 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
16.5k
Fork
2.4k
Merge trung bình
17 giờ 22 phút
Pull request đã merge (30 ngày)
212

Mô tả

### Is your feature request related to a problem?

We often get warnings of ClientSession and other objects that have not been closed properly, but it's often difficult to figure out which object is the problem and why it wasn't closed.

### Describe the solution you'd like

We can record the stack trace and include it in the warning, something along the lines of:
https://stackoverflow.com/a/22148022

This should be done under the `if DEBUG` flag to avoid performance impacts (although this may still be tricky to resolve flaky tests if we don't run them under debug mode by default).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.