From 73d51dac3405de3bb7fe08d65dbf07db69b9e09d Mon Sep 17 00:00:00 2001 From: Paul Ishenin Date: Wed, 24 Jan 2024 18:52:43 +0700 Subject: [PATCH] fix: regression with showing standard keys in output object if they contain escaped dot --- lib/pretty.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/pretty.js b/lib/pretty.js index ebb43800..5f5cf4fc 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 })