Skip to content
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

fix: remove tokens in unhandled rejection log #1055

Merged

Conversation

KuznetsovRoman
Copy link
Member

No description provided.

`Promise: ${util.inspect(p)}`,
`Reason: ${util.inspect(reason)}`,
`Promise: ${util.inspect(objectReplaceSecrets(p))}`,
`Reason: ${util.inspect(objectReplaceSecrets(reason))}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of wrapping each log you can create your own util-log (node:util wrapper) that will do it automatically

@KuznetsovRoman KuznetsovRoman force-pushed the users/kroman512/unhandled_rejection_remove_tokens branch 4 times, most recently from f2795be to 62abee9 Compare January 29, 2025 16:24
@KuznetsovRoman KuznetsovRoman force-pushed the users/kroman512/unhandled_rejection_remove_tokens branch 3 times, most recently from 2f2e1d2 to 3ab2b29 Compare January 30, 2025 17:11
@KuznetsovRoman KuznetsovRoman force-pushed the users/kroman512/unhandled_rejection_remove_tokens branch from 3ab2b29 to e1dba75 Compare January 30, 2025 20:51
@KuznetsovRoman KuznetsovRoman merged commit 6b55940 into master Jan 30, 2025
2 checks passed
@KuznetsovRoman KuznetsovRoman deleted the users/kroman512/unhandled_rejection_remove_tokens branch January 30, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants