pino icon indicating copy to clipboard operation
pino copied to clipboard

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

Open elevatedbuttonpusher opened this issue 1 year ago • 2 comments

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

elevatedbuttonpusher avatar Oct 02 '24 20:10 elevatedbuttonpusher

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

mcollina avatar Oct 17 '24 16:10 mcollina

My understanding is this impact the browser build of pino

mcollina avatar Oct 17 '24 16:10 mcollina

@elevatedbuttonpusher it is the same for v9.5.0

tuminzee avatar Nov 04 '24 15:11 tuminzee

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.

github-actions[bot] avatar May 17 '25 00:05 github-actions[bot]