Bunyan v0.18.3 Release Notes
-
⚠ WARNING: This release introduced a bug such that all serializers are 🌲 applied to all log records even if the log record did not contain the key for that serializer. If a logger serializer function does not handle ⚠ being given
undefined
, then you'll get warnings like this on stderr:bunyan: ERROR: This should never happen. This is a bug in <https://github.com/trentm/node-bunyan> or in this application. Exception from "foo" Logger serializer: Error: ... at Object.bunyan.createLogger.serializers.foo (.../myapp.js:20:15) at Logger._applySerializers (.../lib/bunyan.js:644:46) at Array.forEach (native) at Logger._applySerializers (.../lib/bunyan.js:640:33) ...
🌲 and the following junk in written log records:
"foo":"(Error in Bunyan log "foo" serializer broke field. See stderr for details.)"
⬆️ Please upgrade to bunyan 0.20.0.
Change the
bunyan.stdSerializers.err
serializer for errors to exclude the "domain*" keys.err.domain
will include its assigned members which can arbitrarily large objects that are not intended for logging.👉 Make the "dtrace-provider" dependency optional. I hate to do this, but installing bunyan on Windows is made very difficult with this as a required dep. Even though "dtrace-provider" stubs out for non-dtrace-y platforms, without a compiler and Python around, node-gyp just falls over.