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

Library is swallowing log messages from function code

Aberta
#38 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
294
Forks
84
Merge médio
3d 7min
PRs com merge (30d)
3

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.