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

Library is swallowing log messages from function code

Đang mở
#38 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
294
Fork
84
Merge trung bình
3 ngày 7 phút
Pull request đã merge (30 ngày)
3

Mô tả

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?

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.