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

Library is swallowing log messages from function code

未關閉
#38 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
294
分支
84
平均合併
3 天 7 分鐘
30 天內合併 PR
3

描述

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?

貢獻指南

開啟貢獻指南

研究方向

未指定原始檔案或測試。首先在 Python runtime interface client 中重現記錄設定,並追蹤函式記錄訊息的處理或重新導向方式。完成的標準是說明這些訊息會傳送到哪裡,並找出必須變更的行為。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
backend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。