pino
pino copied to clipboard
isLevelEnabled not working in v9.3.1 and v9.4.0.
I have a sandbox where you can see this happening. https://codesandbox.io/p/sandbox/empty-leftpad-s52j5r
I'm using v9.3.1 and I swear this function was working a few weeks ago, I was working on something else and it suddenly doesn't work anymore. Using it like so.
const logger2 = pino();
if (logger2.isLevelEnabled('debug')) {
....
}
it fails at the function.
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
My understanding is this impact the browser build of pino
@elevatedbuttonpusher it is the same for v9.5.0
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.