Comparing version 0.6.7 to 0.6.8
# bunyan Changelog | ||
## bunyan 0.6.8 | ||
- Fix bad bug in `log.child({...}, true);` where the added child fields **would | ||
be added to the parent's fields**. This bug only existed for the "fast child" | ||
path (that second `true` argument). A side-effect of fixing this is that | ||
the "fast child" path is only 5 times as fast as the regular `log.child`, | ||
instead of 10 times faster. | ||
## bunyan 0.6.7 | ||
@@ -4,0 +13,0 @@ |
@@ -7,3 +7,3 @@ /* | ||
var VERSION = "0.6.7"; | ||
var VERSION = "0.6.8"; | ||
@@ -243,4 +243,4 @@ // Bunyan log format version. This becomes the 'v' field on all log records. | ||
if (parent && _childSimple) { | ||
// Single to stream close handling that this child owns none of its | ||
// streams. | ||
// `_isSimpleChild` is a signal to stream close handling that this child | ||
// owns none of its streams. | ||
this._isSimpleChild = true; | ||
@@ -252,7 +252,12 @@ | ||
this.src = parent.src; | ||
this.fields = parent.fields; | ||
var fields = this.fields = {}; | ||
var parentFieldNames = Object.keys(parent.fields); | ||
for (var i = 0; i < parentFieldNames.length; i++) { | ||
var name = parentFieldNames[i]; | ||
fields[name] = parent.fields[name]; | ||
} | ||
var names = Object.keys(options); | ||
for (var i = 0; i < names.length; i++) { | ||
var name = names[i]; | ||
this.fields[name] = options[name]; | ||
fields[name] = options[name]; | ||
} | ||
@@ -259,0 +264,0 @@ return; |
{ | ||
"name": "bunyan", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"description": "a JSON Logger library for node.js servers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/bunyan.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133971
26
1460