logdna / logger-node

A nodejs logger client for LogDNA
MIT License
34 stars 17 forks source link

Uncaught TypeError: If passed, log.warn requires 'options' to be an object #74

Closed tishma closed 1 year ago

tishma commented 1 year ago

Hi,

Got the error above running the readme example. It is trivial to overcome, but for the sake of completeness, it'd be great if examples were just working.

I meant to post a PR, but I'm not sure what was the intention of this line: https://github.com/logdna/logger-node/blob/main/README.md?plain=1#L514 (that's the one featuring logger.warn({signal}, 'received signal, shutting down'))

Cheers!

darinspivey commented 1 year ago

Thank you for notifying us. This appears to just be a cut-and-paste bug, using a log format from another one of our commonly-used loggers. We'll get it fixed!

logdnabot commented 1 year ago

:tada: This issue has been resolved in version 2.6.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket: