-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Bug: [BUG] Crashes on undefined if maskValuesRegEx option specified #197
Labels
bug
Something isn't working
Comments
Thank you. I’ll fix it today |
@terehov thank you! |
V4.4.6 is out now 👍 |
Amazing ) |
@terehov yet another problem import { Logger } from 'tslog';
const logger = new Logger({ maskValuesRegEx: [/bearer \S+/] });
logger.info({ count: 0 });
problem with non string values |
Ok, looks like a lack of tests. I'll add some tests and fix it. Thank you 👍 |
I'll fix the other issues tomorrow and release a new version afterwards. |
V4.6.0 is out that fixes this and adds more tests. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Crashes on
undefined
ifmaskValuesRegEx
option specifiedTo Reproduce
Expected behavior
Log empty value same as in case without
maskValuesRegEx
.Screenshots
Additional context
Add any other context about the problem here.
Node.js Version
Node.js v18.12.1
OS incl. Version
macOS 13.1 (22C65)
The text was updated successfully, but these errors were encountered: