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

isLevelEnabled not working in v9.3.1 and v9.4.0. #2053

Open
elevatedbuttonpusher opened this issue Oct 2, 2024 · 3 comments
Open

isLevelEnabled not working in v9.3.1 and v9.4.0. #2053

elevatedbuttonpusher opened this issue Oct 2, 2024 · 3 comments
Labels

Comments

@elevatedbuttonpusher
Copy link

elevatedbuttonpusher commented Oct 2, 2024

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.
image
image

@mcollina
Copy link
Member

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

@mcollina mcollina added the bug label Oct 17, 2024
@mcollina
Copy link
Member

My understanding is this impact the browser build of pino

@tuminzee
Copy link

tuminzee commented Nov 4, 2024

@elevatedbuttonpusher it is the same for v9.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants