diff --git a/lib/pretty.js b/lib/pretty.js index ebb4380..5f5cf4f 100644 --- a/lib/pretty.js +++ b/lib/pretty.js @@ -143,18 +143,13 @@ function pretty (inputData) { if (this.singleLine) line += this.EOL line += prettifiedErrorLog } else if (this.hideObject === false) { - const skipKeys = [ + log = filterLog({ log, context: { ignoreKeys: [ this.messageKey, this.levelKey, this.timestampKey - ].filter(key => { - return typeof log[key] === 'string' || - typeof log[key] === 'number' || - typeof log[key] === 'boolean' - }) + ] } }) const prettifiedObject = prettifyObject({ log, - skipKeys, context: this.context })