pinojs / pino-http

🌲 high-speed HTTP logger for Node.js
MIT License
539 stars 117 forks source link

fix: allow using non-lowercased custom levels #342

Closed chernodub closed 3 months ago

chernodub commented 3 months ago

The code failed to use useLevel when the custom level was, for example, camel-cased.

I updated the test to reflect this occasional scenario and removed the unnecessary transformation of the log level.

mcollina commented 3 months ago

I think this is ok!