aws / aws/aws-lambda-python-runtime-interface-client

Library is swallowing log messages from function code

Abierto
#38 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
294
Forks
84
Merge medio
3 d 7 min
PR fusionados (30 d)
3

Descripción

I'm using logging messages in my python code, but none of those are ever visible. I'm currently configuring my logger like so:

```python

formatter = json_log_formatter.JSONFormatter()
handler = logging.StreamHandler(sys.stdout)

if conf.USE_JSON_LOGGING:
handler.setFormatter(formatter)

logging.basicConfig(
level=logging.INFO,
format='[%(asctime)s] {%(filename)s:%(lineno)d} %(levelname)s - %(message)s', # noqa
handlers=[handler],
)
logger = logging.getLogger(__name__)
```

However, I never see the logs. Where are they going?

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.