apex / apex/up

Logs missing contextual information

オープン
#799 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
8.8k
フォーク
383
PR マージ指標
30日以内にマージされた PR はありません

説明

## 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/.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。