FasterXML / FasterXML/jackson-core

Allow suppresion of source information in exception messages

オープン
#1,158 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
2.4k
フォーク
928
平均マージ
2日 18時間
マージ済み PR(30日)
24

説明

This is a follow-on from the discussion in #1151 .

Currently the `JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION` setting can be used to choose whether to include source information as a part of the location in `JsonProcessingException`.

When this is disabled, the message now includes messages such as:

```
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 4, column: 18]
```

It would be nice to have configuration that just disables the source entirely from this text blurb, logs and messages don't have a reference to internal implementation details. Ideally this would result in messages more like:

```
at [line: 4, column: 18]
```

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

このリポジトリのコントリビューションガイドは索引されていません

評価

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

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

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