-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
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
Top level redacting with censor function #613
Comments
Would you like to send a PR here or in fast-redact to address this problem? |
I’d say make the PR here because pino manages the top level integration
with fast-redact
…On Wed, 20 Mar 2019 at 13:26, Matteo Collina ***@***.***> wrote:
Would you like to send a PR here or in fast-redact to address this problem?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#613 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABIrPOQlpAMOFrumZdWXJ6if6BOMyCpvks5vYijegaJpZM4b_BX9>
.
|
It's seems to be an issue of pino itself, so has to be fixed in here perhaps. Let me see what I can do. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, if I want to use wildcard redaction with a custom censor function it omits the object from the output.
Broken test for reference:
This is the place where it seems to be breaking: https://github.com/pinojs/pino/blob/master/lib/redaction.js#L75 - obviously fn cannot be serialized, which gives
undefined
as result, which leads to situation when object is omitted from output at all.The text was updated successfully, but these errors were encountered: