Bunyan CLI tweak to show an 'err' field that doesn't have a 'stack'.
This commit is contained in:
parent
fcbecef56e
commit
ea39bf03a5
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue