-
Notifications
You must be signed in to change notification settings - Fork 150
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: unescape \\ for levelKey #538
Conversation
typeof log[key] === 'boolean' | ||
}) | ||
] | ||
.map((key) => key.replaceAll(/\\/g, '')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This strips off the \\
in log\\.level
so that you get the correct key to ignore.
const formatted = pretty(chunk.toString()) | ||
t.equal( | ||
formatted, | ||
`[${formattedEpoch}] WARN (${pid}): foo\n` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this fix, you would get log.level
underneath in the prettified object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@mcollina Pino 9.0.0 dropped support for Node 14. Is that something that can be done here as well? I can switch to |
Yes, we should drop 14. It'll be a new major, though. |
Should I make that change in this PR? For example: matrix:
node-version: [18.17, 20, 22]
os: [ubuntu-latest]
pino-version: [^9.0.0] |
@eliw00d send a fresh PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
closes #456