We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With pino version 8.7
Redaction doesn't seem to be using the right serialization as it is not using the safe version.
const logger = pino({ redact: ['that.secret'], }); logger.info( { that: { secret: 'please hide me', 'big int in * wildcard': 123n, }, other: { 'not in wildcard': 222n, }, }, 'Some message', );
Resulting log:
{ "level": 30, "time": 1668025489627, "pid": 35178, "hostname": "X", "that": "[unable to serialize, circular reference is too complex to analyze]", "other": { "not in wildcard": 222 }, "msg": "Some message" }
Expected:
{ "level": 30, "time": 1668025568447, "pid": 35225, "hostname": "X", "that": { "big int in * wildcard": 123, "secret": "[Redacted]" }, "other": { "not in wildcard": 222 }, "msg": "Some message" }
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sorry, something went wrong.
No branches or pull requests
With pino version 8.7
Redaction doesn't seem to be using the right serialization as it is not using the safe version.
Resulting log:
Expected:
The text was updated successfully, but these errors were encountered: