note issue #2 for this
This commit is contained in:
parent
1a0cd4be62
commit
3649708f36
1 changed files with 5 additions and 5 deletions
10
CHANGES.md
10
CHANGES.md
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
## bunyan 0.5.1 (not yet released)
|
## bunyan 0.5.1 (not yet released)
|
||||||
|
|
||||||
- Add guard on `JSON.stringify`ing of log records before emission. This will
|
- [issue #2] Add guard on `JSON.stringify`ing of log records before emission.
|
||||||
prevent `log.info` et al throwing on record fields that cannot be
|
This will prevent `log.info` et al throwing on record fields that cannot be
|
||||||
represented as JSON. An error will be printed on stderr and a clipped
|
represented as JSON. An error will be printed on stderr and a clipped log
|
||||||
log record emitted with a 'bunyanMsg' key including error details. E.g.:
|
record emitted with a 'bunyanMsg' key including error details. E.g.:
|
||||||
|
|
||||||
bunyan: ERROR: could not stringify log record from /Users/trentm/tm/node-bunyan/examples/unstringifyable.js:12: TypeError: Converting circular structure to JSON
|
bunyan: ERROR: could not stringify log record from /Users/trentm/tm/node-bunyan/examples/unstringifyable.js:12: TypeError: Converting circular structure to JSON
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
$ node tools/timeguard.js # after
|
$ node tools/timeguard.js # after
|
||||||
Time try/catch-guard on JSON.stringify:
|
Time try/catch-guard on JSON.stringify:
|
||||||
- log.info: 0.07368ms per iteration
|
- log.info: 0.07368ms per iteration
|
||||||
|
|
||||||
|
|
||||||
## bunyan 0.5.0
|
## bunyan 0.5.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue