getsentry / getsentry/sentry-python

Add an `ignore_loggers` kwarg to `LoggingIntegration`

Abierto
#4,707 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Feature Integration: Logging Logs Python
Lenguaje dominante
Python
Estrellas
2.2k
Forks
669
Merge medio
1 d 1 h
PR fusionados (30 d)
213

Descripción

### 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 ())
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.