FasterXML / FasterXML/jackson-core

Allow suppresion of source information in exception messages

Open
#1,158 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
928
Avg merge
2d 18h
Merged PRs (30d)
24

Description

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]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.