Fix 'make check'
This commit is contained in:
parent
bc49f14cfa
commit
d3929226a8
1 changed files with 5 additions and 3 deletions
|
@ -829,8 +829,10 @@ function mkLogEmitter(minLevel) {
|
||||||
if (args[0] instanceof Error) {
|
if (args[0] instanceof Error) {
|
||||||
// `log.<level>(err, ...)`
|
// `log.<level>(err, ...)`
|
||||||
fields = {
|
fields = {
|
||||||
// if a serializer is defined for err use it else fallback on the default serializer
|
// Use this Logger's err serializer, if defined.
|
||||||
err: log.serializers.err ? log.serializers.err(args[0]) : Logger.stdSerializers.err(args[0])
|
err: (log.serializers.err
|
||||||
|
? log.serializers.err(args[0])
|
||||||
|
: Logger.stdSerializers.err(args[0]))
|
||||||
};
|
};
|
||||||
excludeFields = {err: true};
|
excludeFields = {err: true};
|
||||||
if (args.length === 1) {
|
if (args.length === 1) {
|
||||||
|
|
Loading…
Reference in a new issue