Bunyan CLI tweak to show an 'err' field that doesn't have a 'stack'.

This commit is contained in:
Trent Mick 2012-02-28 14:45:53 -08:00
parent fcbecef56e
commit ea39bf03a5
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -455,8 +455,8 @@ function handleLogLine(line, opts, stylize) {
if (rec.err && rec.err.stack) {
details.push(indent(rec.err.stack))
}
delete rec.err;
}
var leftover = Object.keys(rec);
for (var i = 0; i < leftover.length; i++) {