trentm/node-bunyan — pull request #16 by rlidwka (2012-05-14 07:18:36+00:00)
Title: stdSerializers is not failsafe enough

> Note: Your own serializers should never throw, otherwise you'll get an ugly message on stderr from Bunyan (along with the traceback) and the field in your log record will be replaced with a short error message.

But what about built-in serializers? :)

```
> logger.error({err:1})
bunyan: ERROR: This should never happen. This is a bug in or in this application. Exception from "err" Logger serializer: TypeError: Object.keys called on non-object
at Function.keys (native)
at Object.err (/home/alex/node_modules/bunyan/lib/bunyan.js:935:10)
at /home/alex/node_modules/bunyan/lib/bunyan.js:572:46
at Array.forEach (native)
at Logger._applySerializers (/home/alex/node_modules/bunyan/lib/bunyan.js:568:33)
at Logger._emit (/home/alex/node_modules/bunyan/lib/bunyan.js:612:12)
at Logger.error (/home/alex/node_modules/bunyan/lib/bunyan.js:852:8)
at repl:1:9
```