getsentry / getsentry/sentry-python

Add an `ignore_loggers` kwarg to `LoggingIntegration`

Đang mở
#4,707 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Feature Integration: Logging Logs Python
Ngôn ngữ chính
Python
Star
2.2k
Fork
669
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
213

Mô tả

### Problem Statement

It's simply more convenient to have a kwarg for this, instead of having to call `ignore_logger()` multiple times 🙂

### Solution Brainstorm

```python
class LoggingIntegration(Integration):
def __init__(
self,
...,
ignore_loggers=None,
):
...
# --- Either: ---
for logger in ignore_loggers or ():
ignore_logger(logger)
# --- Or: ---
_IGNORED_LOGGERS.update(ignore_loggers or ())
```

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.