diff --git a/CHANGES.md b/CHANGES.md index 8ca8826..926d701 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,9 @@ ## bunyan 0.6.9 (not yet released) -(nothing yet) +- Tweak `bunyan` CLI default output to still show an "err" field if it doesn't + have a "stack" attribute. + ## bunyan 0.6.8 diff --git a/bin/bunyan b/bin/bunyan index 5494e55..f89d9b7 100755 --- a/bin/bunyan +++ b/bin/bunyan @@ -455,8 +455,8 @@ function handleLogLine(line, opts, stylize) { if (rec.err && rec.err.stack) { details.push(indent(rec.err.stack)) + delete rec.err; } - delete rec.err; var leftover = Object.keys(rec); for (var i = 0; i < leftover.length; i++) {