Logs missing contextual information
- Ngôn ngữ chính
- Go
- Star
- 8.8k
- Fork
- 383
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
## Prerequisites
* [x] I am running the latest version. (`up upgrade`)
* [x] I searched to see if the issue already exists.
* [x] I inspected the verbose debug output with the `-v, --verbose` flag.
* [ ] Are you an Up Pro subscriber?
## Description
Logs do not contain contextual information unless wrapped in a `fields` object.
## Steps to Reproduce
Log something like this:
```
console.log(JSON.stringify({ message: "Hello", foo: "bar" }))
```
Then do `up logs` after deploying.
I would expect to see a log similiar to:
```
{ "message": "Hello", "foo": "bar" }
```
However, what is being logged is:
```
{ "message": "Hello" }
```
If `foo: "bar"` is wrapped in a `fields` object, the additional entire log is outputted:
```
console.log(JSON.stringify({ message: "Hello", fields{ foo: "bar" } }))
```
This is not documented at https://apex.sh/docs/up/.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.